Prediction method for dalmatian objects
# S3 method for dalmatian
predict(
object,
newdata = object$df,
method = "mean",
population = FALSE,
se = TRUE,
ci = TRUE,
type = c("link", "response"),
level = c(0.5, 0.95),
...
)
Object of class dalmatian
created by dalmatian()
.
data frame containing predictor values to predict response variables. Defaults to data in object
if not supplied. (data.frame)
Method to construct the fitted model. Either posterior mean ("mean"
) or posterior mode ("mode"
) (character)
If TRUE then generate predictions at the population level rather than the individual level. (logical)
if TRUE return the posterior standard devition (logical)
returning credible intervals for predictions if TRUE (logical)
The type of prediction required (as in predict()
for
models generated by glm()
). The default is on the scale of the
linear predictors; the alternative <U+2018>"response"<U+2019> is on the scale of the
response variable. E.g., if the link between the mean and its linear
predictor is the logit function then the default prediction for the mean
will be on the scale of the log-odds. If the link between the mean and
its linear predictor is the log funciton then the defults prediction
will be on the scale of the log.
vector of levels of credible intervals for predictions (numeric)
Ignored
predictions (list)