gxeRC: gxeRC

Description Usage Arguments Value References Examples

View source: R/gxeRC.R

Description

A function to run a power analysis for gene by environment interactions of both rare and common variants.

Usage

1
2
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 power of 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

1
gxeRC(n=5000)

SharonLutz/gxeRC documentation built on March 7, 2020, 7:10 p.m.