data(xval) ## result of following commands
head(xval)
## Not run:
# ## count matrix
# fl <- system.file(package="DirichletMultinomial", "extdata",
# "Twins.csv")
# count <- t(as.matrix(read.csv(fl, row.names=1)))
#
# ## phenotype
# fl <- system.file(package="DirichletMultinomial", "extdata",
# "TwinStudy.t")
# pheno0 <- scan(fl)
# lvls <- c("Lean", "Obese", "Overwt")
# pheno <- factor(lvls[pheno0 + 1], levels=lvls)
# names(pheno) <- rownames(count)
#
# ## subset
# keep <- c("Lean", "Obese")
# count <- count[pheno
# pheno <- factor(pheno[pheno
#
# ## cross-validation, single Dirichlet component for Lean, 3 for Obese
# xval <- cvdmngroup(nrow(count), count, c(Lean=1, Obese=3), pheno,
# verbose=TRUE, mc.preschedule=FALSE)
# ## End(Not run)
Run the code above in your browser using DataLab