# With implicit default function argument values
str(simDat19B())
# With explicit function argument values
str(simDat19B(nVisits = 3, alpha.lam = -3, beta1.lam = 8.5, beta2.lam = -3.5,
alpha.p = 2, beta.p = -2, show.plot = TRUE))
# No plots
str(simDat19B(show.plot = FALSE))
# More visits
str(simDat19B(nVisits = 10))
# A single visit at each site
str(simDat19B(nVisits = 1))
# Greater abundance
str(simDat19B(alpha.lam = 0))
# Much rarer abundance
str(simDat19B(alpha.lam = -5))
# No quadratic effect of elevation on abundance (only a linear one)
str(simDat19B(beta2.lam = 0))
# No effect of elevation at all on abundance
str(simDat19B(beta1.lam = 0, beta2.lam = 0))
# Higher detection probability (intercept at 0.9)
str(simDat19B(alpha.p = qlogis(0.9), beta.p = -2))
# Higher detection probability (intercept at 0.9) and no effect of elevation
str(simDat19B(alpha.p = qlogis(0.9), beta.p = 0))
# Perfect detection (p = 1)
str(simDat19B(alpha.p = 1000))
# Positive effect of elevation on detection probability (and lower intercept)
str(simDat19B(alpha.p = -2, beta.p = 2))
Run the code above in your browser using DataLab