get.array.cv.fold.data | R Documentation |
Splits array testing data into crossvalidation data sets.
get.array.cv.fold.data(X, Y, Z, K)
X |
Design matrix with first column a column of 1s. |
Y |
Group testing output from one of the functions |
Z |
Group testing output from one of the functions |
K |
The number of crossvalidation folds; |
List of length K
of the crossvalidation training and testing data sets.
# generate individual covariate values and disease statuses N <- 160 data <- model1(N) X <- data$X Y.true <- data$Yi Se <- c(.92,.95) # set row/col and individual assay sensitivity Sp <- c(.97,.98) # set row/col and individual assay specificity cj <- 4 # set size of master pools # subject individuals to array testing assay.data <- array.assay.gen(Y.true,Se,Sp,cj) Z <- assay.data$Z Y <- assay.data$Y array.cv.fold.data <- get.array.cv.fold.data(X,Y,Z,K=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.