Hi,
does the spatiotemporal random effect take into account uneven amounts of data across time?
I am running a spatiotemporal model where I am joining together three datasets, two of these run from 2000-2020 while the third runs from 2009-2020. So half way through the amount of data will increase significantly.
Can the spde effect take this into account and realise that the response did not just increase majorly after 2009?
My initial crude solution is the inclusion of a binary factor, with levels before and after the inclusion of the third dataset,
some example code:
gtime <- as.integer(seq(2000, 2020, length = 7))
gtime
mesh.t <- inla.mesh.1d(loc=gtime, degree = 1)
dim(A2 <- inla.spde.make.A(mesh, group=dat1$year, loc=loc,
group.mesh=mesh.t, n.group = mesh.t$n))
inla(... f(s.z, model=spde2, group=s.z.group, control.group=list(model='ar1', hyper=h.spec))...)
Any help would be greatly appreciated,
Sylvan