Skip to contents

This function generates both analytical and simulated predictive distributions for new data based on the fitted Bayesian multivariate linear model.

Usage

# S3 method for class 'mlvr'
predict(object, newdata, n_sims = 1000)

Arguments

object

An object of class `mlvr` containing posterior simulations of the model.

newdata

A data frame containing new observations for which predictions are to be made.

n_sims

Number of predictive simulations (optional, default is 1000).

Value

A list containing summaries, analytical and simulated predictive distributions, and marginals.

Author

Joaquín Martínez-Minaya jmarmin@eio.upv.es