INLAutils icon indicating copy to clipboard operation
INLAutils copied to clipboard

posterior p values are wrong

Open timcdlucas opened this issue 2 years ago • 1 comments

x <- rnorm(100)
y <- x + rnorm(100, sd = 0.2)
d <- data.frame(x, y)

result1 = inla(y ~ x, family="normal", data = d, 
               control.predictor = list(compute = TRUE, link = 1),
               control.compute = list(return.marginals.predictor=TRUE))

plot_inla_residuals(result1, y)

looks horrible even with correct model

timcdlucas avatar Nov 23 '22 16:11 timcdlucas

Maybe I should just switch to PIT values.

timcdlucas avatar Nov 23 '22 16:11 timcdlucas