combiner.missing: Run lm on each column in a cluster and combine p-values with...

Description Usage Arguments Value

Description

Run lm on each column in a cluster and combine p-values with the Stouffer-Liptak method or the z-score method. Missing data OK.

Usage

1
2
combiner.missing(formula, covs, meth, weights = NULL,
  cor.method = "spearman", combine.fn = stouffer_liptak.combine)

Arguments

formula

an R formula containing "methylation"

covs

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

meth

a matrix of correlated data.

weights

optional weights matrix of same shape as meth

cor.method

either "spearman" or "pearson"

combine.fn

a function that takes a list of p-values and a correlation matrix and returns a combined p-value stouffer_liptak.combine or zscore.combine

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.