apply.formula.HLM: Apply Hierarchical Linear Model with specific formula

View source: R/basics.R

apply.formula.HLMR Documentation

Apply Hierarchical Linear Model with specific formula

Description

Wrapper to compute differentially expressed genes with a hierarchical linear model

Usage

apply.formula.HLM(
  r,
  X,
  Y,
  MARGIN = 1,
  formula = "y ~ (1 | samples) + x",
  ttest.flag = F
)

Arguments

r

list object of sequencing data

X

fixed effects

Y

outcome

formula

formula for the hierarchical model

ttest.flag

(default = F) is flag for computing ttest?

Value

pvalues of hlm


Jerby-Lab/opipes documentation built on Oct. 7, 2022, 12:28 p.m.