On 23/07/13 14:46, Aritz Alberdi wrote:
> tha was usefull Elias, thank you. and... what if I would like to
> implement the spatio-temporal model in an irregular grid?
> I am playing with some datasets and I thought about using the ID as
> group indexing but not sure what I am telling INLA to compute.
>
> my dataset (dt) is only ID(of the location * 10 years) and counts. I
> would like to implement a spatio-temporal model. I�ve been checking
> an email to r-inla-discussion-group+unsub...@googlegroups.com.
Sorry for a simple question but I am struggling to understand the difference between replicate and group. For instance, in the following models:
inla1<-inla(distance~1+f(age, group=groupID,model="ar1"), data=mydata)
inla1<-inla(distance~1+f(age, replicate=groupID),model="ar1"),data=mydata)
Basically, I have time series data for multiple groups. I would like to fit an ar1 model but avoid assuming that the underlying ar1 correlation is the same across all groups. I think using “replicate” assumes that it is, but I can't find much documentation about what “group” is doing?!
Thanks for your help!