# \donttest{
data(green_crab_data)
# Fit a model without estimating a gear scaling coefficient for traditional
# survey gear types.
# This model assumes all traditional survey methods have the same
# catchability.
# Count data is modeled using a poisson distribution.
fit_no_q <- joint_model(data = green_crab_data, family = "poisson",
p10_priors = c(1,20), q = FALSE, multicore = FALSE)
# Fit a model estimating a gear scaling coefficient for traditional
# survey gear types.
# This model does not assume all traditional survey methods have the
# same catchability.
# Gear type 1 is used as the reference gear type.
# Count data is modeled using a negative binomial distribution.
fit_q <- joint_model(data = green_crab_data, family = "negbin",
p10_priors = c(1,20), q = TRUE, multicore = FALSE)
# Perform model selection
joint_select(model_fits = list(fit_no_q$model, fit_q$model))
# }
Run the code above in your browser using DataLab