View source: R/dataSimulation.R
simDat15 | R Documentation |
Generate presence/absence data for two gentian species (Bernoulli variant)
simDat15(N = 50, theta.cr = 12/50, theta.ch = 38/50)
N |
Number of sites |
theta.cr |
Probability of presence for cross-leaved gentian |
theta.ch |
Probability of presence for chiltern gentian |
A list of simulated data and parameters.
N |
Number of sites |
theta.cr |
Probability for cross-leaved gentian |
theta.ch |
Probability for chiltern gentian |
y |
Simulated presence/absence data |
species.long |
Species indicator (longform), 1 = chiltern |
C |
Aggregated presence/absence data |
species |
Species indicator for aggregated data |
chiltern |
Effect of chiltern (difference in species intercepts) |
Marc Kéry
str(dat <- simDat15()) # Implicit default arguments
# Revert to "Binomial model-of-the-mean"
# (Increase sample size to reduce sampling variability)
str(dat <- simDat15(N = 100, theta.cr = 40/100, theta.ch = 40/100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.