Description Usage Arguments Value Author(s) Examples
This function calls the functions required to run a full ESPRESSO analysis where the model consists of an outcome (binary or continuous) determined by two interacting covariates (a SNP and an environmental exposure)
1 2 | run.espresso.ExE(simulation.params = NULL, pheno.params = NULL,
env1.params = NULL, env2.params = NULL, scenarios2run = 1)
|
simulation.params |
general parameters for the scenario(s) to analyse |
pheno.params |
paramaters for the outcome variables |
env1.params |
parameters for the 1st environmental determinant |
env2.params |
parameters for the 2nd environmental determinant |
scenarios2run |
the indices of the scenarios one wish to analyse |
a summary table that contains both the input parameters and the results of the analysis
Gaye A.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {
# load the table that hold the input parameters; each of the table
# hold parameters for 4 scenarios:
# scenario 1: a binary outcome determined by two binary environmental exposures
# and an interaction between the two
# scenario 2: a binary outcome determined by two continuous environmental exposures
# and an interaction between the two
# scenario 3: a quantitative outcome determined by two binary environmental exposures
# and an interaction between the two
# scenario 4: a quantitative outcome determined by two continuous environmental exposures
# and an interaction between the two
data(simulation.params)
data(pheno.params)
data(env1.params)
data(env2.params)
# run the function for the first two scenarios, two binomial models
run.espresso.ExE(simulation.params, pheno.params, env1.params, env2.params, scenarios2run=c(1,2))
# run the function for the last two scenarios, two gaussian models
run.espresso.ExE(simulation.params, pheno.params, env1.params, env2.params, scenarios2run=c(3,4))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.