FKMO_Null_Model: Optimal KM for continuous Traits in Familial GWAS Data (fit...

Description Usage Arguments Value

View source: R/FKMO_Null_Model.R

Description

This function (FKMO) is used to perform optimal famSKAT analysis for continuous traits in familial GWAS data
# In the final correlation matrix, the covariance between parent and offspring is 0.5, the covariance between siblings is also 0.5

Usage

1
FKMO_Null_Model(phenotype, id, fa, mo, covariates = NULL)

Arguments

phenotype

A vector of quantitative trait in the analysis (class: vector). The order should match the vector id. Subjects with missing phenotypes are only used for kinship calculation.

id

A vector of id (class: vector). It can be either numeric or character. The id indicates each subject. Make sure it is not factor. No missing.

fa

A vector of father id (class: vector). It can be either numeric or character. The father id indicates the father of each subject. If this subject has no father in this data, the value is set to "NA". Make sure it is not factor.

mo

A vector of mother id (class: vector). It can be either numeric or character. The mother id indicates the mother of each subject. If this subject has no mother in this data, the value is set to "NA". Make sure it is not factor.

covariates

A matrix of covariates (class: data.frame). The order of rows should match the vector id. Default NULL. Subjects with missing covariates are only used for kinship calculation.

Value

output: object as input for FKMO


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