lmr: Run lm on a single site

Description Usage Arguments Value

Description

Unlike most of the function in this package, this function is used on a single site.

Usage

1
lmr(formula, covs, methylation = NULL, weights = NULL)

Arguments

formula

an R formula containing "methylation"

covs

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

methylation

a single column matrix or a vector the same length as nrow(covs)

weights

optional weights for lm

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.