Predict method for moultmcmc models

# S3 method for moultmcmc
predict(
  object,
  newdata = NULL,
  predict.type = "parameters",
  summary = TRUE,
  intervals = 0.1,
  prob = 0.95,
  ...
)

Arguments

object

a fitted moultmcmc model

newdata

data.frame with explanatory variables for which to make predictions

predict.type

specifies form of predictions, see details.

summary

logical, if TRUE (default) return a data.frame of posterior means, otherwise return a list of arrays of the full posterior sample of the predicted quantity (with one list element per predicted quantity and array dimensions nrow(newdata) *number or posterior draws)

intervals

not currently used

prob

nominal coverage probability of credible interval

...

further arguments

Value

a data.frame or list, depending on input arguments