View source: R/randEffAnalysis.R
randEffAnalysis | R Documentation |
Model based analysis with random effects
randEffAnalysis(
data,
pheno,
frm0 = as.formula(VAL ~ 1 + (1 | ID)),
frm = as.formula(VAL ~ GRP + (1 | ID)),
type = "lm",
rand = NULL,
nCores = NULL,
reCalcREML = T,
complete.cases = T,
transf = F
)
data |
data.frame containg a sample per column and one gene per row |
pheno |
Pheno data.frame with columns representing variables and rows patients. Must be matched. |
frm0 |
Null-model formula |
frm |
Full-model formula |
type |
type of analysis, can be "lm" (lmer), "nb" (glmer.nb), "p" (glmer, family=poisson(link=log)), "l" (glmer, family=binomial(link=logit)), "b" (glmmTMB, family=beta) |
rand |
random formula required in nlme, if provided, lmer will be used for "lm" |
nCores |
number of cores to use |
complete.cases |
automatically remove incomplete data (NA, Inf) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.