Skip to content

error with sdmTMB_cv when going back to models that previously ran #275

Answered by seananderson
jennybigman asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what's happening. Your initial post had:

as(, "dgTMatrix") is deprecated since Matrix 1.5-0; do as(., "TsparseMatrix") instead

which is curious, because at least in sdmTMB as(, "dgTMatrix") hasn't been used for a very long time.

Your Matrix package is one minor version behind: Matrix_1.6-1 vs. Matrix_1.6-1.1 and I know there was some breaking change in Matrix with respect to TMB recently. Can you try updating that, restarting your R session, and trying again?

Do you get the same error with a non-cross-validation example?

library(sdmTMB)
fit <- sdmTMB(
  density ~ 1,
  data = pcod_2011, spatial = "off",
  family = tweedie(link = "log")
)

Also, if the above doesn't work, can y…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jennybigman
Comment options

@seananderson
Comment options

@jennybigman
Comment options

Answer selected by seananderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants