gxeRC: gxeRC

View source: R/gxeRC.R

gxeRCR Documentation

gxeRC

Description

A function to examine gene by environment interactions of both rare and common variants.

Usage

gxeRC(n = 5000, nSNP = 3, MAF = c(0.05, 0.01, 0.005), betaX = c(0.25, 0.25, 0.25), betaI = c(0, 0.05, 0.1), 
zMu = 0, zVar = 1, yVar = 1, nSim = 1000, alpha = 0.05, plot.name = "gxeRC.pdf")

Arguments

n

is the number of subjects

nSNP

is the number of SNPS

MAF

is the minor allele frequency for the SNPS

betaX

is the genetic effect of each SNP

betaI

is the effect of interaction for each SNP

zMu

is the mean for the environmental effect

zVar

is the variance for the environmental effect

yVar

is the variance for the outcome Y

nSim

is the number of simulations

alpha

is the alpha level, default=0.05

plot.name

is the name of the corresponding plot

Value

a matrix of the proportion of simulations the null hypothesis was rejected for each SNP, and all SNPs together

References

Lutz SM, Frederiksen B, Begum F, Cho MH, Hobbs B, McDonald ML, Parker MM, DeMeo DL, Jiang L, Eringher M, Young K, Foreman MG, Kinney GL, Make BJ, Lomas DA, Bakke P, Gulsvik A, Crapo JD, Silverman EK, Beaty TH, Hokanson JE. (2018) Common and Rare Variants Analysis of Smoking Related Traits Among Current and Former Smokers of European and African Ancestry. (Submitted).

Examples

gxeRC(n=5000)

SharonLutz/gxeRC documentation built on July 23, 2024, 11:39 p.m.