These models are included in bbsBayes2. The model files themselves can be
found in the folder identified by
system.file("models", package = "bbsBayes2")
.
To create a custom Stan model, see copy_model_file()
and the
model_file
argument of prepare_model()
. See also the models article for more
details.
Format
bbs_models
A data frame with 9 rows and 3 columns:
model
- Model typefirst_diff
- First difference modelsgam
- General Additive Models (GAM)gamye
- General Additive Models (GAM) with Year Effectslope
- Slope models
variant
- Variant of the model to runnonhier
- Non-hierarchical models (only available for first difference models)hier
- Hierarchical modelsspatial
- Spatial models
file
- Stan model file name
Examples
bbs_models
#> # A tibble: 9 × 3
#> model variant file
#> <chr> <chr> <chr>
#> 1 first_diff nonhier first_diff_nonhier_bbs_CV.stan
#> 2 first_diff hier first_diff_hier_bbs_CV.stan
#> 3 first_diff spatial first_diff_spatial_bbs_CV.stan
#> 4 gam hier gam_hier_bbs_CV.stan
#> 5 gam spatial gam_spatial_bbs_CV.stan
#> 6 gamye hier gamye_hier_bbs_CV.stan
#> 7 gamye spatial gamye_spatial_bbs_CV.stan
#> 8 slope hier slope_hier_bbs_CV.stan
#> 9 slope spatial slope_spatial_bbs_CV.stan