Description Usage Arguments Examples
Function to simulate multivariate response data with specified beta coefficient correlation structure and relationship with the abundance data set.
1 | outcome.sim(tax_sim, n.outcomes, beta.struc, controls = NULL)
|
tax_sim |
Object of type |
n.outcomes |
Number of outcome variables |
beta.struc |
Can be "none" which means that beta values are randomly generated. "phylo" which means beta values are generated following the phylogenetic tree, "ex" for an exchangable structure similar to that of the abundance data, and "none" means there exists no dependency relationship between taxa when the beta values are generated. Finally, if "nr" is specified, no beta values will be generated. |
controls |
List of arguments controlling the specific parameters of the simulation. Specifically, |
1 2 3 4 5 | tax <- tax.sim(n.spec = 20, n.samp = 200, corr.struc = "phylo", p = 0.1)
outcome <- outcome.sim(tax_sim = tax, n.outcomes = 10,
beta.struc = "ex", controls = list(b.corr = 0.1))
beta <- outcome$beta
met <- outcome$response
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.