process_results: Process results from mmBPFA sampling run

Description Usage Arguments Value

View source: R/process_results.R

Description

process_results ingests raw results from mmBPFA_sampler and returns processed estimates of posterior quantities of interest.

Usage

1
process_results(mcmc_object, SE = T, p = c(0.05, 0.95), to_tibble = T)

Arguments

mcmc_object

An S3 object of class bpfa.results from mmBPFA sampling run.

SE

A boolean indicating whether to calculate standard error credibility intervals around posterior estimates.

p

a vector indicating the lower and upper probability bounds for the credibility intervals. Default is c(0.05, 0.95).

to_tibble

A boolean indicating whether to convert output to tibbles for use in tidy workflow. Default is TRUE.

Value

An S3 object of class mcmc.output.processed containing the processed posterior margins.


EandrewJones/mmBPFA documentation built on Feb. 14, 2021, 11:17 p.m.