predict.dalmatian: Prediction method for dalmatian objects

Description Usage Arguments Value

View source: R/predict.R

Description

Prediction method for dalmatian objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'dalmatian'
predict(
  object,
  newdata = object$df,
  method = "mean",
  population = FALSE,
  se = TRUE,
  ci = TRUE,
  type = c("link", "response"),
  level = c(0.5, 0.95),
  ...
)

Arguments

object

Object of class dalmatian created by dalmatian().

newdata

data frame containing predictor values to predict response variables. Defaults to data in object if not supplied. (data.frame)

method

Method to construct the fitted model. Either posterior mean ("mean") or posterior mode ("mode") (character)

population

If TRUE then generate predictions at the population level rather than the individual level. (logical)

se

if TRUE return the posterior standard deviation (logical)

ci

returning credible intervals for predictions if TRUE (logical)

type

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 "response" 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 function then the defaults prediction will be on the scale of the log.

level

vector of levels of credible intervals for predictions (numeric)

...

Ignored

Value

predictions (list)


dalmatian documentation built on Nov. 23, 2021, 1:08 a.m.