Skip to content
Prev 15791 / 20628 Next

MCMCglmm Poisson with an offset term and splines

Hi,

The model looks OK as far as can be assessed without knowing the data. 
For the offset term you need to hold the associated coefficient at 1 by 
placing a strong prior on it. If  you want everything else to have the 
default prior then use:

k<-11 # number of fixed effects

prior<-list(B=list(V=diag(k)*1e8, mu=rep(0,k)),
             R=list(V=1, nu=0),
             G=list(G1=list(V=1, nu=0),
                    G2=list(V=1, nu=0),
                    G3=list(V=1, nu=0)))

prior$mu[k]<-1 # assuming the offset term is last
prior$B[k,k]<-1e-8

The interpretation of the offset is simply the coefficient is assumed to 
be one and that the rate at which events occur is constant.

Cheers,

Jarrod
On 22/09/2017 01:52, dani wrote: