combiner: 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 either stouffer-liptak or zscore method.

Usage

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

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.

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

weights

optional weights matrix of same shape as meth

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.