predict.var_estimate function

Model Predictions for var_estimate Objects

Model Predictions for var_estimate Objects

## S3 method for class 'var_estimate' predict(object, summary = TRUE, cred = 0.95, iter = NULL, progress = TRUE, ...)

Arguments

  • object: object of class var_estimate
  • summary: summarize the posterior samples (defaults to TRUE).
  • cred: credible interval used for summarizing
  • iter: number of posterior samples (defaults to all in the object).
  • progress: Logical. Should a progress bar be included (defaults to TRUE) ?
  • ...: Currently ignored

Returns

The predicted values for each regression model.

Examples

# data Y <- subset(ifit, id == 1)[,-1] # fit model with alias (var_estimate also works) fit <- var_estimate(Y, progress = FALSE) # fitted values pred <- predict(fit, progress = FALSE) # predicted values (1st outcome) pred[,,1]
  • Maintainer: Philippe Rast
  • License: GPL-2
  • Last published: 2024-12-22