randEffAnalysis: Model based analysis with random effects

View source: R/randEffAnalysis.R

randEffAnalysisR Documentation

Model based analysis with random effects

Description

Model based analysis with random effects

Usage

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
)

Arguments

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)


mknoll/dataAnalysisMisc documentation built on Nov. 17, 2024, 9:40 a.m.