PosteriorFrame: Calculate the posterior mean and quantiles from a Dirichlet...

View source: R/posterior_frame.R

PosteriorFrameR Documentation

Calculate the posterior mean and quantiles from a Dirichlet process object.

Description

Calculate the posterior mean and quantiles from a Dirichlet process object.

Usage

PosteriorFrame(dpobj, xgrid, ndraws = 1000, ci_size = 0.1)

Arguments

dpobj

The Dirichlet process object to be drawn from.

xgrid

The x values the posterior is to be evaluated at.

ndraws

The number of posterior draws to take.

ci_size

The size of the credible interval draw in terms of percentage.

Value

A dataframe consisting of the posterior mean and credible intervals.


dirichletprocess documentation built on Aug. 25, 2023, 5:19 p.m.