Simulates count survey data with a non-linear trend, and site and temporal random effects. The logistic function is used to create a trend the reduces the expected population size to half its initial value over the time period.
simTrend(nyear = 30, nsite = 40, mu = 3, timeSD = 0.1, siteSD = 0.3)
A data frame containing simulated data.
The number of years in the simulated survey.
The number of sites in the simulated survey
The expected mean of the counts at the start of the survey.
Standard deviation (at log-scale) of annual mean deviation from the trend.
Standard deviation (at log-scale) of simulated among site variation.
Jonas Knape