Function to help run simulations for sensitivity analysis. Note that for simplicity, the number of traits is restricted to two, each with the same range of values, as can be done for real traits by standardizing by range.
1 2 3 4 5 6 7 8 | utc.sim(
n.reps,
n.recs,
tr1.lim,
tr2.lim,
sim.type = "random",
filter.vals = "none"
)
|
n.reps |
The number of replicates for the simulation |
n.recs |
The number of records in the record x trait matrix |
tr1.lim |
The minimum and maximum allowable values for trait 1 |
tr2.lim |
The minimum and maximum allowable values for trait 2 |
sim.type |
"random" runs random assembly (or if any sim.type other than limiting or filter is specified), "limiting" runs limiting similarity, and "filter" applies an environmental filter. |
filter.vals |
Vector of filter values in text form with a semi-colon delimiter (sorry!) e.g., c("1,1", "1;2") would only allow values of 1,1 and 2,2 in the data. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.