plot_uncertainties: Plot MLE vs MCMC marginal standard deviations for each...

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Plot MLE vs MCMC marginal standard deviations for each parameter

Usage

1

Arguments

fit

A fitted object returned by sample_admb

log

Whether to plot the logarithm or not.

plot

Whether to plot it or not.

Details

It can be helpful to compare uncertainty estimates between the two paradigms. This plots the marginal posterior standard deviation vs the frequentist standard error estimated from the .cor file. Large differences often indicate issues with one estimation method.

Value

Invisibly returns data.frame with parameter name and estimated uncertainties.

Examples

1
2
3
fit <- readRDS(system.file('examples', 'fit.RDS', package='adnuts'))
x <- plot_uncertainties(fit, plot=FALSE)
head(x)

adnuts documentation built on March 3, 2021, 1:07 a.m.