RprobitB_gibbs_samples_statistics: Compute parameter statistics.

Description Usage Arguments Value

View source: R/RprobitB_gibbs_samples_statistics.R

Description

This function computes parameter statistics from Gibbs samples.

Usage

1

Arguments

gibbs_samples

An object of class RprobitB_gibbs_samples.

FUN

A (preferably named) list of functions that compute parameter statistics from the Gibbs samples, i.e.

  • mean for the mean,

  • sd for the standard deviation,

  • min for the minimum,

  • max for the maximum,

  • median for the median,

  • function(x) quantile(x, p) for the pth quantile,

  • R_hat for the Gelman-Rubin statistic.

Value

An object of class RprobitB_gibbs_samples_statistics, which is a list of statistics from gibbs_samples obtained by applying the elements of FUN.


RprobitB documentation built on Nov. 12, 2021, 5:08 p.m.