View source: R/dataSimulation.R
simDat5 | R Documentation |
Simulate percent occupancy population trajectory of Swiss Wallcreepers from a normal distribution. Note that other choices of arguments may lead to values for x and y that no longer make sense in the light of the story in Chapter 5 (i.e., where y is a percentage), but will still be OK for the statistical model introduced in that chapter.
simDat5(n = 16, a = 40, b = -0.5, sigma2 = 25)
n |
The sample size |
a |
Value for the intercept |
b |
Value for the slope |
sigma2 |
Value for the residual variance |
A list of simulated data and parameters.
n |
Sample size |
a |
Intercept |
b |
Slope |
sd |
Residual SD |
y |
Simulated wallcreeper occupancy probabilities |
Marc Kéry
str(dat <- simDat5()) # Implicit default arguments
str(dat <- simDat5(b = 0)) # Stable population (this is a de-facto "model-of-the-mean")
str(dat <- simDat5(b = 0.5)) # Expected increase
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.