MKM_Null_Model: KM for Multiple Quantitative Traits in GWAS Data (fit null...

Description Usage Arguments Value

View source: R/MKM_Null_Model.R

Description

This function (MKM) is used to perform KM analysis (Tzeng et al. 2012) for multiple (two) quantitative traits in GWAS data.
# It considers variances of trait 1 and 2, and covariance between trait 1 and 2

Usage

1
MKM_Null_Model(phenotype, trait, yid, covariates = NULL, eq.cov.effect = F)

Arguments

phenotype

A vector of quantitative trait in the analysis (class: vector). The order should match the vector yid. No missing.

trait

A vector of multivariate traits (class: vector). The order should match the vector yid. No missing.

yid

A vector of id (class: vector). Although it doesn't have to be sorted, observations from the same subject have to be connected with each other. The repeated id numbers indicate multiple traits for one subject. Make sure it is not a factor. No missing.

covariates

A matrix of covariates (class: data.frame). The order of rows should match the vector yid. Default NULL. No missing.

eq.cov.effect

Whether assume equal covariates effects on different traits (Default=False).

Value

output: object as input for MKM


KMgene documentation built on July 8, 2020, 6:09 p.m.