lionel68 / spde_stan

Trying to create SPDE smooths in Stan
0 stars 0 forks source link

Create a new formula term for fitting spde in brms #2

Open lionel68 opened 1 year ago

lionel68 commented 1 year ago

Another option to fit spde in brms if it is not feasible to fit into the smooth2random re-parametrization is to define a new model formula term in brms like:

brm(resp ~ 1 + spde(mesh = mesh), data = dat)

We would then have more flexibility in how this term is defined and which functions it uses. But we would need to tap deeper into the brms machinery.