Using extra_time
to predict/extrapolate over future years
#123
-
Question by email:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry, I didn’t realize there weren’t examples in there right now with And a vignette Julia is developing based on that that I haven’t integrated yet:
There are many ways, and I think we cover that in the slides above. Assuming you mean ‘year’ for an annual survey, year could be a random walk: time = “year”,
time_varying = ~ 1 The random walk is by whatever the time argument is defined as, so or an IID random intercept: dat$fyear <- as.factor(dat$year)
formula = … + (1 | fyear),
time = “year”, or a smoother: formula = s(year),
time = “year”, or absorbed fully into the random walk or AR1 random field: time = “year”,
spatiotemporal = “rw” or spatiotemporal = “ar1” If you mean day-of-year or something, that’s probably best entered as a smoother. |
Beta Was this translation helpful? Give feedback.
Sorry, I didn’t realize there weren’t examples in there right now with
extra_time
. There’s a set of slides here: https://pbs-assess.github.io/sdmTMB-teaching/noaa-psaw-2022/ (see forecasting) That's from this repository.And a vignette Julia is developing based on that that I haven’t integrated yet:
https://github.com/pbs-assess/sdmTMB/blob/main/scratch/julia-vignettes/forecasting.Rmd
extra_time
should be a vector of numeric values representing the missing or extra time slices. E.g.extra_time = c(2023, 2024)