Description Usage Arguments Value Author(s) Examples
Empirical power analysis for a gene by environment interaction with a binary outcome and a normally distributed environmental exposure.
1 |
nCase |
is the number of cases |
nControl |
is the number of controls |
MAF |
is the minor allele frequency for the SNP |
meanE |
is the mean of the normally distributed environmental exposure |
varE |
is the variance of the normally distributed environmental exposure |
beta0 |
For the binary outcome Y, the environmental exposure E, and the SNP, logit(P(Y=1))=Beta0+BetaSNP*SNP+BetaE*E+BetaI*SNP*E |
betaSNP |
For the binary outcome Y, the environmental exposure E, and the SNP, logit(P(Y=1))=Beta0+BetaSNP*SNP+BetaE*E+BetaI*SNP*E |
betaE |
For the binary outcome Y, the environmental exposure E, and the SNP, logit(P(Y=1))=Beta0+BetaSNP*SNP+BetaE*E+BetaI*SNP*E |
betaI |
For the binary outcome Y, the environmental exposure E, and the SNP, logit(P(Y=1))=Beta0+BetaSNP*SNP+BetaE*E+BetaI*SNP*E |
nSim |
is the number of simulations |
alpha |
is the alpha level, default=0.00000005 |
plot.output |
if true, then a plot is outputted to the working directory. |
plot.name |
is the name of the plot. |
seed |
is set for reproducibility. |
The SNP is generated from a binomial distribution and the environmental exposure from a normal distribution. Then, the binary outcome is generated from a binomial distribution such that logit(P(Y=1))=Beta0+BetaSNP*SNP+BetaE*E+BetaI*SNP*E where E is the environmental exposure. Then empirical power is calculated based on the proportion of simulations where the p-value for the interaction term is less than alpha.
Sharon Lutz
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.