Description Usage Arguments Value Author(s) See Also
Perform replicated K-fold cross-validation with GS3, i.e. call crossValWithGs3
several times, with different seeds.
1 2 3 4 | crossValRepWithGs3(genos, dat, config, task.id = "GS3",
binary.trait = FALSE, ped.file = "", afs = NULL, nb.reps = 50,
seed = NULL, nb.cores.rep = 1, nb.folds = 10, remove.files = "some",
nb.cores.fold = 1, cl = NULL, verbose = 1)
|
genos |
matrix of SNP genotypes |
dat |
data frame with phenotypes |
config |
list containing the configuration for GS3 |
task.id |
character containing the task identifier used as prefix for the output files (for each fold, its index will be added) |
binary.trait |
logical |
ped.file |
path to the file containing the pedigree (if not used, use NA or "" instead of NULL) |
afs |
vector of allele frequencies which names are SNP identifiers (column names of |
nb.reps |
number of replicates (a set of folds will be sampled for each replicate) |
seed |
if not NULL, this seed for the pseudo-random number generator will be used to sample as many seeds as the number of replicates, these new seeds being used to shuffle genotypes before partitioning per fold |
nb.cores.rep |
number of cores to launch replicates in parallel (via |
nb.folds |
number of folds |
remove.files |
remove files per fold (none/some/all); use |
nb.cores.fold |
number of cores to launch folds in parallel (via |
cl |
object returned by |
verbose |
verbosity level (0/1/2); there will be a progress bar only for |
data frame
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.