[R-sig-ME] Back-transformation of Poisson model

Jarrod Hadfield j.hadfield at ed.ac.uk
Wed Mar 16 13:12:54 CET 2016


Hi,

Obtianing the expected mean by integrating over the uncertainity (e.g. 
the posterior) gets a much better estimate

m1.mcmc<-MCMCglmm(y~1, random=~group, data=dat, prior=list(R=list(V=1, 
nu=0.002), G=list(G1=list(V=1, nu=0.002))), family="poisson")

hist(exp(m1.mcmc$Sol+ 0.5*rowSums(m1.mcmc$VCV)), breaks=100)
abline(v=mean(dat$y), col="red")

You might be able to improve on the REML estimate by subtracting 0.5*(Vi 
+Civ+0.25*Vv) before exponentiating. Vi is the samping variance of the 
intercept (standard error^2) Vv the sampling variance of the variance, 
and Civ the sampling covariance bewteen the two. Getting approximate 
values of Vv and Civ from glmer might be difficult though - not sure.

Cheers,

Jarrod




On 15/03/2016 18:27, Mollie Brooks wrote:
> summary(m1)
> exp(fixef(m1)+ 0.5*VarCorr(m1)$group[1])

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mixed-models/attachments/20160316/8627fd2f/attachment.pl>


More information about the R-sig-mixed-models mailing list