Get_UV_from_data {MTAR} | R Documentation |
Compute the summary statistics given the individual-level data
Description
This function allows you to calculate the score summary statistics U
and their covariance matrix V
for MTAR, given the traits, covariates and genotype data sets. If one trait only takes no more than two values, this function will treat this trait as a binary trait.
Usage
Get_UV_from_data(traits, covariates, genotype, covariance = TRUE)
Arguments
traits |
a numeric list, each sublist containing trait information for each study. In each study, a numeric |
covariates |
a numeric list, each sublist containing covariates information for each study. In each study, a numeric |
genotype |
a numeric list, each sublist containing genotype information for each study. In each study, a numeric |
covariance |
a logical value indicating whether to calculate the covariance matrix of score summary statistics |
Value
A list containing summary statistics for each trait. If covariance is TRUE, the score summary statistics U
and its covariance matrix V
are returned. Otherwise, only U
and the diagonal elements of covariance matrix are returned.
Author(s)
Lan Luo
References
Hu, Y.J., Berndt, S.I., Gustafsson, S., Ganna, A., Mägi, R., Wheeler, E., Feitosa, M.F., Justice, A.E., Monda, K.L., Croteau-Chonka, D.C. and Day, F.R., 2013. Meta-analysis of gene-level associations for rare variants based on single-variant statistics. The American Journal of Human Genetics, 93(2), pp.236-248.
Tang, Z.Z. and Lin, D.Y., 2015. Meta-analysis for discovering rare-variant associations: statistical methods and software programs. The American Journal of Human Genetics, 97(1), pp.35-53.
Examples
data(rawdata)
attach(rawdata)
obs.stat <- Get_UV_from_data(traits = traits.dat,
covariates = cov.dat,
genotype = geno.dat,
covariance = TRUE)
obs.stat
detach(rawdata)