bayes_summary: Calculate mean, 95% Lower and Upper CRI, from JAGS and Stan

Description Usage Arguments Author(s) Examples

View source: R/bayes_summary.R

Description

Takes an fitted Bayesian model object from either JAGS or Stan and returns summary stats.

Usage

1
bayes_summary(fit, par.name, percent = 0.95, transform = NULL)

Arguments

fit

Model object from JAGS or Stan

par.name

Parameter of intrest to return summary stats

percent

Percentage for calculating credible intervals. Defaults to 95% CRI.

transform

Transformation to be applied to the data before summarizing. This is a character vector. For example, transform = "exp", will exponentiate the parameter.

Author(s)

Michael J. Dodrill, mdodrill@usgs.gov

Examples

1
Add these in...

mdodrill-usgs/fishR documentation built on Oct. 29, 2019, 8:48 p.m.