Description Usage Arguments Value Examples
View source: R/sim_data_nobs.R
Generate point counts and/or distance sampling data that is biased by double-counting. Distance sampling data is created with each dataset, but it can just be ignored if you only want the point count data. This is a rudementary function. Currently it assumes constant density, detection probability, transects length, etc.
1 2 3 4 5 6 7 8 9 | sim_data_nobs(
n_sites = 50,
n_samps = 6,
lambda = 10,
alpha = 0.58,
gamma = 0.02,
sigma = NA,
W = 20
)
|
n_sites |
number of sites (transects) |
n_samps |
number of samples (replicates) per site |
lambda |
mean number of organisms per site |
alpha |
probability of NOT being observed (i.e. alpha = 1 - detection probability; and detection probability = gamma + beta) |
gamma |
probability of an organism being observed exactly TWICE |
sigma |
detection parameter (meters). Just leave this blank and it will be calculated from det_prob |
W |
transect half-width (meters) |
Returns a list of 4 items: 1. "true_N" is a matrix of true abundance values for each site (row) and sample (column). 2. "n_obs" is a matrix of the number of observed organisms at each site (row) and sample (column). 3. "y_list" is a list of vectors. Each vector holds the distance data for a single survey. 4. "inputs" is a list of input values.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.