mixed_modelr: Use mixed-effects model in lme4 syntax to associate a...

Description Usage Arguments Value

Description

An example model would look like: methylation ~ disease + age + gender + (1|CpG) + (1|id) To determine the associate of disease and methylation and allowing for random intercepts by CpG site and by sample id.

Usage

1

Arguments

covs

covariate data.frame containing the terms in formula except "methylation" which is added automatically

formula

an R formula containing "methylation"

Value

list(covariate, p, coef) where p and coef are for the coefficient of the first term on the RHS of the model.


brentp/clustermodelr documentation built on May 13, 2019, 5:11 a.m.