combine_draws: Combine Lists of Draws From a Posterior Predictive...

View source: R/combine_draws.R

combine_drawsR Documentation

Combine Lists of Draws From a Posterior Predictive Distribution

Description

combine_draws combines and resamples parameter draws returned from an MCMC algorithm.

Usage

combine_draws(draws, r)

Arguments

draws

A list of draws from a posterior predictive distribution

r

Number of MCMC draws

Value

A matrix or data frame containing 'R' randomly sampled rows from the combined 'betadraw' components.

Author(s)

Federico Bumbaca, Leeds School of Business, University of Colorado Boulder, federico.bumbaca@colorado.edu

References

Bumbaca, F. (Rico), Misra, S., & Rossi, P. E. (2020). Scalable Target Marketing: Distributed Markov Chain Monte Carlo for Bayesian Hierarchical Models. Journal of Marketing Research, 57(6), 999-1018.

See Also

rhierLinearMixtureParallel, rhierMnlRwMixtureParallel, rhierLinearDPParallel, rhierMnlDPParallel


scalablebayesm documentation built on April 3, 2025, 7:55 p.m.