skatr: Use SKAT to associate a covariate with a cluster of data.

Description Usage Arguments Value

Description

An example model would look like: disease ~ 1 And the result would be testing if adding the correlated matrix of data (with all the assumptions of SKAT) improves that null model.

Usage

1
skatr(formula, covs, meth, r.corr = c(0, 0.015, 0.06, 0.15))

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.

r.corr

list of weights between kernel and rare variant test.

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.