# Generate phenotype vectors for cross validation

### Description

This function takes a phenotype vector and generates `folds * reps`

masked
vectors for cross validation. Every vector has as many additional missing values as `length(y) / folds`

.

### Usage

1 |

### Arguments

`y` |
vector of phenotypes - may already contain missing values |

`folds` |
integer, number of folds |

`reps` |
integer, number of replications |

`matrix` |
boolean, if TRUE function returns a matrix rather than a list |

`seed` |
numeric scalar, seed for |

### Value

List (matrix) with as many items (columns) as `folds * reps`

### See Also

`clmm, get_pred, get_cor`

### Examples

1 2 3 4 5 6 7 |