You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/web_only/multispecies.Rmd
+18-10Lines changed: 18 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,7 @@ vignette: >
11
11
**If the code in this vignette has not been evaluated, a rendered version is available on the [documentation site](https://pbs-assess.github.io/sdmTMB/index.html) under 'Articles'.**
These examples illustrate a number of ways that species-specific effects can be included in `sdmTMB` models, and can be extended to other categories/groups/cohorts within a species for which one wants to control the amount of information shared between groups (e.g., age-, size-, or stage-specific estimates). A brief summary of these approaches can be summarized as:
228
223
229
224
```{r echo=FALSE}
230
-
desc <- data.frame("Form" = c("Main effects", "Spatial effects", "Spatial effects w/shared variance", "Spatiotemporal effects"), "Implementation" = c("Year-by-species interactions or smooths by year", "Spatially varying coefficients", "Spatially varying coefficients + map argument", "Species-year factor as time variable"))
231
-
knitr::kable(desc)
225
+
desc <- data.frame(
226
+
Form = c(
227
+
"Main effects",
228
+
"Spatial effects",
229
+
"Spatial effects w/shared variance",
230
+
"Spatiotemporal effects"),
231
+
Implementation = c(
232
+
"Year-by-species interactions or smooths by year",
233
+
"Spatially varying coefficients",
234
+
"Spatially varying coefficients + map argument",
235
+
"Species-year factor as time variable")
236
+
)
237
+
if (require("knitr", quietly = TRUE)) {
238
+
knitr::kable(desc)
239
+
} else
240
+
print(desc)
232
241
```
233
242
234
243
### Further extensions
235
244
236
245
As long as you're willing to treat spatiotemporal and group-level fields (e.g., for different species or age cohorts) as independent, sdmTMB can be used to fit models to these data. For example, this allows sdmTMB to be used for standardization of age or length composition data as in [Thorson and Haltuch (2018) CJFAS](https://doi.org/10.1139/cjfas-2018-0015). The approach is to similar to the above and we plan to write a separate vignette on the topic.
0 commit comments