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
I think the solution here is just modifying coef()to take model as an argument
library(dplyr)
library(tidyr)
library(sdmTMB)
set.seed(1)
# Build a mesh to implement the SPDE approach:mesh<- make_mesh(pcod_2011, c("X", "Y"), cutoff=20)
# Quick mesh plot:
plot(mesh)
# Fit a Tweedie spatial random field GLMM with a smoother for depth:fit<- sdmTMB(
density~ s(depth),
data=pcod_2011, mesh=mesh,
family= delta_gamma()
)
coef(fit)
#> (Intercept) #> -0.7903428
I think the solution here is just modifying
coef()
to takemodel
as an argumentCreated on 2024-06-14 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: