rareGE(phenotype, genotypes, covariates, mainweights = wuweights,
interweights = wuweights, family = "gaussian", binomialimpute = FALSE,
rho = seq(0, 1, by = 0.1), B = 10000, INT_FIX = TRUE, INT_RAN = TRUE,
JOINT = TRUE)
phenotype
.
covariates
is tested. The order of rows must match the order in phenotype
.
INT_FIX
is FALSE.INT_RAN
is FALSE.JOINT
is FALSE.JOINT
is FALSE.JOINT
is FALSE.JOINT
is FALSE.pJOINT
is the mean excluding missing values. NULL if JOINT
is FALSE.INT_FIX
) or random effects (INT_RAN
). We do not recommend treating genetic main effects as fixed when the number of SNPs in the gene is not small. For the joint test (JOINT
), genetic main effects are not included in the null model and we are testing genetic effects, allowing for effect modification by the environmental variable. In the joint test, raw p-values are calculated for each value of the nuisance parameter $\rho$, then the minimum p-value is taken (similar to the optimal test proposed by Lee et al., 2012) and the actual p-value is calculated by multi-dimensional integration, approximated by a Monte Carlo method. This function is designed to perform two or more tests. If performing only one test, please use INT_FIX
, INT_RAN
or JOINT
functions instead to get faster speed (only relevant models are fitted and relevant statistics are computed).
Lee S, Wu MC, Lin X. (2012) Optimal tests for rare variant effects in sequencing association studies. Biostatistics 13, 762-775.
Wu MC, Lee S, Cai T, Li Y, Boehnke M, Lin X. (2011) Rare-variant association testing for sequencing data with the sequence kernel association test. Am J Hum Genet 89, 82-93.
INT_FIX
, INT_RAN
, JOINT
set.seed(12345)
data(rareGEgeno)
data(rareGEpheno)
# quantitative traits - testing for gene-BMI interactions
rareGE(rareGEpheno$y1, rareGEgeno, rareGEpheno[, c("bmi", "age", "sex")],
B = 1000)
# dichotomous traits - testing for gene-BMI interactions
rareGE(rareGEpheno$y2, rareGEgeno, rareGEpheno[, c("bmi", "age", "sex")],
family = "binomial", B = 1000)
Run the code above in your browser using DataLab