q() R
library(variancePartition) library(mvBIC)
data(varPartData)
info$x = rnorm(nrow(info)) info$y = rnorm(nrow(info)) info$z = rnorm(nrow(info))
variables = c("(1|Batch)", "(1|Tissue)", "Age", "Height", "x", "y", "z")
baseFormula = ~ (1|Individual)
res = mvForwardStepwise( geneExpr, baseFormula, info, variables)
variables = c("Batch", "Age", "Height", "x", "y", "z")
res1 = mvForwardStepwise( geneExpr, ~1, info, variables, logDetMethod="Touloumis_unequal")
res2 = mvForwardStepwise( geneExpr, ~1, info, variables, logDetMethod="pseudodet")
Y = with(iris, rbind(Sepal.Width, Sepal.Length))
bestModel1 = mvForwardStepwise( Y, ~ 1, data=iris, variables=colnames(iris)[3:5], logDetMethod="Touloumis_unequal")
bestModel2 = mvForwardStepwise( Y, ~ 1, data=iris, variables=colnames(iris)[3:5], , logDetMethod="pseudodet")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.