simTrend: Simulate population survey data.

View source: R/trendAnalysis.R

simTrendR Documentation

Simulate population survey data.

Description

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.

Usage

simTrend(nyear = 30, nsite = 40, mu = 3, timeSD = 0.1, siteSD = 0.3)

Arguments

nyear

The number of years in the simulated survey.

nsite

The number of sites in the simulated survey

mu

The expected mean of the counts at the start of the survey.

timeSD

Standard deviation (at log-scale) of annual mean deviation from the trend.

siteSD

Standard deviation (at log-scale) of simulated among site variation.

Value

A data frame containing simulated data.

Author(s)

Jonas Knape


poptrend documentation built on Nov. 22, 2023, 5:08 p.m.