fixedEffAnalysis: Model based analysis with fixed effects

View source: R/fixedEffAnalysis.R

fixedEffAnalysisR Documentation

Model based analysis with fixed effects

Description

Model based analysis with fixed effects

Usage

fixedEffAnalysis(
  data,
  pheno,
  frm0 = as.formula(VAL ~ 1),
  frm = as.formula(VAL ~ GRP),
  type = "lm",
  nCores = NULL,
  complete.cases = F,
  padj = "BH"
)

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" (linear), "nb" (negativ binomial), "bin" (logistic regression)

nCores

number of cores to use

complete.cases

automatically remove incomplete data (NA, Inf)


mknoll/dataAnalysisMisc documentation built on Feb. 4, 2024, 8:16 a.m.