powered by
Computes CI from posterior, and PI for Tweedie and scat gams.
predict_intervals(object_fit, new_data, n = 1000, CI = TRUE, PI = TRUE, ...)
A data.frame with intervals.
data.frame
[gam OR bam] The fit to use for predictions.
[data.frame] The data to predict onto.
[numeric] The number of simulations to run for parameters.
[logical] Whether to compute the CI.
[logical] Whether to compute the PI.
further arguments passed to the quantile function.
gam1 <- gam(cyl ~ mpg, data=mtcars, family = tw) predict_intervals(gam1)
Run the code above in your browser using DataLab