timcdlucas / INLAutils

R package providing utilities for INLA
Other
26 stars 10 forks source link

data stack in INLA step #51

Open timcdlucas opened 6 years ago

timcdlucas commented 6 years ago
stk <- inla.stack(data = list(y = dataframe$y), 
                  A = list(A, 1),
                  effects = list(s.index,
                                 list(y.intercept = rep(1, length(dataframe$y)),
                                      covariate = dataframe[-1])), 
                  tag='est')

stk <- inla.stack(data = list(y = dataframe$y),
                  A = list(A, 1), 
                  effects = list(c(s.index, list(y.intercept = 1)),
                                 list(dataframe[-1])),
                  tag='est')

I think both of these formats work in inla but only the second seems to work in INLAstep. No idea why.