posterior: Sets up posterior class used to store posterior samples

Description Usage Arguments Value

View source: R/classes.R

Description

Sets up posterior class used to store posterior samples

Usage

1
posterior(samples, burn, accepts)

Arguments

samples

posterior samples drawn using MCMC algorithm

burn

burn-in samples to be removed

accepts

vector of length (# of coefficients + 2) indicating the number of accepted draws for each coefficient (this includes sigma and the intercept). For Gibbs, this will always be equal to the number of iterations.

Value

list containing matrices of chain values (dims: iterations x coef + 1) of object posterior


JasperHG90/blm documentation built on Sept. 4, 2019, 11:16 a.m.