View source: R/cross_validation.R
cross_val | R Documentation |
Perform cross-validation using a training set of genotypic and phenotypic data. The function will perform cross-validation using a single vector of phenotypes (i.e. from a single environment or a single trait). This procedure is useful to get an idea of the accuracy of genomic prediction for different scenarios.
cross_val(
phenotypes,
genotypes,
cv.method = c("fractional", "k-fold"),
frac.train = 0.6,
frac.reps = 250,
folds = 10,
fold.reps = 25
)
phenotypes |
A n x t |
genotypes |
A n x m |
cv.method |
The method of cross-validation. Choices are |
frac.train |
The proportion of the data to use as the training set when
running |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.