View source: R/sim.pheno.qtl.GxE.R
sim.pheno.qtl.GxE | R Documentation |
Uses the effects data of the determinants to construct a linear predictor(LP). The outcome is normally distributed variable generated with a mean equal to LP and a standard deviation of 1. Some error is then added to the simulated outcome to obtained the observed outcome.
sim.pheno.qtl.GxE(
numsubjects = NULL,
pheno.mean = NULL,
pheno.sd = NULL,
genotype = NULL,
geno.efkt = NULL,
geno.frac_causal = NULL,
environment = NULL,
env.efkt = NULL,
interaction = NULL,
int.efkt = NULL
)
pheno.mean |
statistical mean |
pheno.sd |
standard deviation |
genotype |
Genotype matrix (N x g.nvar) |
geno.efkt |
Effect of the genetic variant |
geno.frac_causal |
Fraction of causal genetic variants |
environment |
Exposure data for environment |
env.efkt |
Effect of the environmental determinants |
interaction |
Interaction matrix (N x g.nvar) |
int.efkt |
Interaction effect |
num.subjects |
Number of subjects to simulate |
A dataframe of phenotype
Gaye A.; Westerman K.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.