Description Usage Arguments Value
View source: R/FbKM_Null_Model.R
This function (FbKM) is used to perform KM analysis (Yan et al., 2015) for binary 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
1 | FbKM_Null_Model(phenotype, id, fa, mo, family = "binomial", covariates = NULL)
|
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. |
family |
Type of phenotype. (Default="binomial") |
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. |
output: object as input for FbKM
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.