Dear all.
Thanks Nico for asking this question, I was also looking for the answer to 'residuals'
However, I have used 'family = ''Exponential'' in the inla formula and I have checked the script of 'Poisson' shared by Havard.
I would like to ask how to modify the following inla formula for exponential prediction?
r = inla(formula,family="
exponential",data=Germany, E=E,
inla.mode = "experimental",
control.compute = list(cpo = TRUE),
control.predictor = list(compute = TRUE, link = 1))
The following is the correct way to calculate the classical Pearson residuals for exponential distribution?
pred.mean <-
1/ Germany$E * r$summary.fitted.values$mean
pred.sd <-
1/ Germany$E * r$summary.fitted.values$sd
pearson.residuals <- (Germany$Y - pred.mean)/
pred.sd
Do you have any scripts to calculate the PIT values for 'exponential distribution'?
Thank you in advance for replying!
Bests,
Wen