Sean Anderson
Sean Anderson
Here's a start based on the last report in rough order of importance. - [x] anisotropy with delta models - [x] sdmTMB_simulate() with IID or AR1 or RW fields -...
First release: * [x] `usethis::use_cran_comments()` * [x] Update (aspirational) install instructions in README * [x] Proofread `Title:` and `Description:` * [x] Check that all exported functions have `@return` and `@examples`...
See this issue for more details: https://github.com/pbs-assess/sdmTMB/issues/95 The TMB code is there, it's just a matter of only applying the range part once if needed.
Might as well still keep the illustration of fitting them independently as well. Include showing how to use `simulate()`, `residuals()`, `predict()`, `tidy()`, etc. while picking a model or using both...
Moving discussion here to its own thread. - `ggeffects::ggeffect()` (marginal effects based on the fixed effect covariance matrix, doesn't work for splines or breakpoints) was already working in the 'dev'...
Will have to be outside the usual testthat folder (for now in a folder in `inst`?) or skipped in all but local runs, which might be ideal assuming it doesn't...
In cases where newdata is the same for all time slices and is large, it would save memory and speed (faster MakeADFun call) if newdata didn't have to be expanded...
Base it off of @ericward-noaa 's example: https://pbs-assess.github.io/sdmTMB-teaching/noaa-psaw-2022/06-presence-only.html#1 https://github.com/pbs-assess/sdmTMB-teaching/blob/main/noaa-psaw-2022/06-presence-only.Rmd
Inspiration in VAST: https://github.com/James-Thorson-NOAA/VAST/blob/7a9a3f7b84227fb41ab027ea3312df13c2035ff6/R/project_model.R Can probably build this off `sdmTMB_simulate()`. Requires extending the parameter object and re-running MakeADFun, then simulate. Faster than if done during fitting with `extra_time`.
Probably needs a prediction helper function to pass the posterior samples through the `obj$report()` function as is done in the predict function for the joint precision matrix simulation. Should also...