lkmt_test {kangar00}R Documentation

A function to calculate the p-values for kernel matrices.

Description

For parameter 'satt' a pathway's influence on the probability of beeing a case is evaluated in the logistic kernel machine test and p-values are determined using a Sattherthwaite approximation as described by Dan Schaid.

For parameter 'davies' a pathways influence on the probability of beeing a case is evaluated using the p-value calculation method described by Davies. Here the function davies from package CompQuadForm is used.

Usage

lkmt_test(formula, kernel, GWASdata, method = c("satt", "davies"), ...)

## S4 method for signature 'matrix'
score_test(x1, x2)

## S4 method for signature 'matrix'
davies_test(x1, x2)

Arguments

formula

The formula to be used for the regression nullmodel.

kernel

An object of class kernel including the pathway representing kernel-matrix based on which the test statistic will be calculated.

GWASdata

A GWASdata object stating the data used in analysis.

method

A character specifying which method will be used for p-value calculation. Available are 'satt' for the Satterthwaite approximation and 'davies' for Davies' algorithm. For more details see the references.

...

Further arguments can be given to the function.

x1

A matrix which is the similarity matrix calculated for the pathway to be tested.

x2

An lm or glm object of the nullmodel with fixed effects covariates included, but no genetic random effects.

Value

An lkmt object including the following test results

Author(s)

Stefanie Friedrichs, Juliane Manitz

References

For details on the variance component test

For details on the p-value calculation see

Examples

data(hsa04020)
data(gwas)
net_kernel <- calc_kernel(gwas, hsa04020, knots=NULL, type='net', calculation='cpu')
lkmt_test(pheno ~ sex + age, net_kernel, gwas, method='satt')

[Package kangar00 version 1.4.2 Index]