mMatrixPosteriorSummary: Get the posterior mean and variance for the M matrix

View source: R/utils.R

mMatrixPosteriorSummaryR Documentation

Get the posterior mean and variance for the M matrix

Description

Get the posterior mean and variance for the M matrix

Usage

mMatrixPosteriorSummary(
  calibva.samples,
  causes,
  output.format = c("matrix", "tibble")[1]
)

Arguments

calibva.samples

a mcmc.list object with samples from the CalibVA sampler

causes

the cause vector input to CalibVA

output.format

either "matrix" or "tibble"

Value

Either a tibble with the entry wise posterior means or a list of matrices with the posterior means stored as m_posterior_mean and the posterior variance stored as m_posterior_variance


jfiksel/CalibratedVA documentation built on Nov. 14, 2022, 2:59 p.m.