New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sdmTMB() work without a mesh if all fields are turned off #59
Comments
seananderson
added a commit
that referenced
this issue
Mar 23, 2022
I just added a hack that creates a fake mesh if there are no random fields. Not super elegant, but for a small overhead it's guaranteed to work everywhere. I also cleaned up fit <- sdmTMB(
density ~ as.factor(year) + s(depth, k = 3),
data = pcod_2011,
family = tweedie(link = "log"),
spatial = "off", spatiotemporal = "off"
)
|
seananderson
added a commit
that referenced
this issue
Mar 23, 2022
I did similar when working on the CAR branch Line 491 in 3402fad
but this version is better, so the CAR hack can get deleted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Work in 'sim2' branch where
spatial = 'off'
andspatiotemporal = 'off'
does this (same asmap_rf = TRUE
. Good suggestion by @joenomiddlename. Will require filling in dummy mesh data and changing a few things that assume a mesh is present (e.g. finding the INLA 'A' matrix).The text was updated successfully, but these errors were encountered: