maxap: Finding maximum a posteriori (MAP) and HPDI from samples.

Description Usage Arguments

View source: R/maxap.R

Description

Given a dataframe with samples for parameters, find the MAP and HPDI.

Usage

1
maxap(data, pars = c(), HPDI_prob = 0.89, digits = NULL)

Arguments

data

Dataframe with samples. A column for each parameter

pars

Names of parameters (Character).

HPDI_prob

Probability for highest posterior density interval (0-1).

digits

How many digits to round to (Whole number).


LudvigOlsen/LRO.utilities documentation built on Nov. 13, 2020, 11:26 a.m.