cCV | R Documentation |
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
.
cCV(y,folds=5,reps=1,matrix=FALSE,seed=NULL)
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 |
List (matrix) with as many items (columns) as folds * reps
clmm, get_pred, get_cor
# generate random data
rand_data(500,1000)
y_CV <- cCV(y,folds=5,reps=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.