| get_classic | R Documentation | 
Creates model code using the nimbleCode function.
get_classic( dim_y, enc_dist = "binomial", sex_sigma = FALSE, hab_mask = FALSE, trapsClustered = FALSE )
| dim_y | An integer of either 2 (the default) or that defines what dimensional format the encounter history data are in. | 
| enc_dist | Either  | 
| sex_sigma | A logical value indicating whether the scaling parameter ('sigma') is sex-specific | 
| hab_mask | A logical value indicating whether a habitat mask will be 
used. Default is  | 
| trapsClustered | A logical value indicating if traps are clustered in arrays across the sampling area. | 
This function provides templates that could be copied and easily modified to include further model complexity such as covariates explaining detection probability. The models include different encounter probability distributions, sex-specific scaling parameters, and habitat masking.
A nimbleCode object from the nimble package.
Daniel Eacker
# get model for 2D encounter data, binomial encounter distribution, 
# non-sex-specific scaling parameter, and no habitat mask
scr_model = get_classic(dim_y = 2,enc_dist = "binomial",sex_sigma = FALSE,
                         hab_mask = FALSE,trapsClustered = FALSE)
# inspect model
scr_model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.