Gives the posterior linear predictor for the reproduction numbers Will be extended for observations in future versions
posterior_linpred(
object,
transform = FALSE,
type = NULL,
newdata = NULL,
draws = NULL,
fixed = TRUE,
random = TRUE,
autocor = TRUE,
offset = TRUE,
...
)
A fitted model object returned by epim
.
See epimodel-objects
.
If TRUE, transforms the predictor by the inverse link function. Defaults to FALSE.
If NULL, then gives posterior linear predictor for reproduction numbers. Otherwise gives the predictor for the specified observation type.
If provided, the original data
used
in object
is overridden. Useful both for counterfactual
and prediction analysis
Number of posterior draws to use. Defaults to the number of parameter draws in the fitted model.
Include fixed effects. Defaults to TRUE.
Include random effects. Defaults to TRUE.
Include autocorrelation terms. Defaults to TRUE.
Include offsets. Defaults to TRUE.
Not used.
A list containing the parameter draws and associated groups and dates.