predict.walker_fit | R Documentation |
Given the new covariate data and output from walker
,
obtain samples from posterior predictive distribution for future time points.
## S3 method for class 'walker_fit'
predict(
object,
newdata,
u,
type = ifelse(object$distribution == "gaussian", "response", "mean"),
...
)
object |
An output from |
newdata |
A |
u |
For Poisson model, a vector of future exposures i.e. E(y) = uexp(xbeta). For binomial, a vector containing the number of trials for future time points. Defaults 1. |
type |
If |
... |
Ignored. |
A list containing samples from posterior predictive distribution.
plot_predict()
for example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.