Skip to content

Modeling without covariates #168

Answered by ericward-noaa
joao-pompeu asked this question in Q&A
Discussion options

You must be logged in to vote

Yes—this is totally reasonable. For example, we might want to build an intercept only model, like the following. Here a spatial field is estimated (using coordinates) and the focus of inference would be on the spatial range, spatial variance, etc. You could also include spatiotemporal fields.

library(sdmTMB)
mesh <- make_mesh(pcod_2011, c("X", "Y"), cutoff = 20)
# Fit a Tweedie spatial random field GLMM with an intercept
fit <- sdmTMB(
  density ~ 1,
  data = pcod_2011, mesh = mesh,
  family = tweedie(link = "log")
)
fit
#> Spatial model fit by ML ['sdmTMB']
#> Formula: density ~ 1
#> Mesh: mesh (isotropic covariance)
#> Data: pcod_2011
#> Family: tweedie(link = 'log')
#>  
#>            …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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