# \donttest{
predict(demo_fit) # Evaluate at each demo_fit$data
predict(demo_fit, probs = c(0.1, 0.5, 0.9)) # With median and 80% credible interval.
predict(demo_fit, summary = FALSE) # Samples instead of summary.
predict(
demo_fit,
newdata = data.frame(time = c(-5, 20, 300)), # Evaluate
probs = c(0.025, 0.5, 0.975)
)
# }
Run the code above in your browser using DataLab