Simulate multi-season occupancy with an AR1 year effect (tPGOcc)
Source:R/t_occu.R
simulate_t_occu.RdSimulate multi-season occupancy with an AR1 year effect (tPGOcc)
Usage
simulate_t_occu(
N = 150,
T_seasons = 8,
J = 3,
beta_occ = c(0.2),
p = 0.4,
rho = 0.6,
sigma = 0.7,
seed = NULL
)Arguments
- N
Number of sites (default 150).
- T_seasons
Number of seasons / years (default 8).
- J
Visits per season (default 3).
- beta_occ
Occupancy coefficients (intercept first; default
c(0.2)).- p
Detection probability (default 0.4).
- rho
AR1 correlation of the year effect (default 0.6).
- sigma
AR1 innovation SD of the year effect (default 0.7).
- seed
Optional random seed.
See also
t_occu(), the family this simulates for.
Examples
sim <- simulate_t_occu(N = 30, T_seasons = 4, J = 2, seed = 1)
dim(sim$y)