predict.moultmcmc: Predict method for moultmcmc models

View source: R/predict.R

predict.moultmcmcR Documentation

Predict method for moultmcmc models

Description

Predict method for moultmcmc models

Usage

## S3 method for class '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


pboesu/moultmcmc documentation built on Feb. 19, 2023, 6:03 a.m.