summary.posterior: Summarize the Posterior Distributions of Model Statistics

Description Usage Arguments Value Examples

Description

Numerical summaries are created for each model including the posterior mean and upper and lower credible intervals (aka uncertainty intervals).

Usage

1
2
3
## S3 method for class 'posterior'
summary(object, prob = 0.9,
  seed = sample.int(10000, 1), ...)

Arguments

object

An object produced by tidy.perf_mod().

prob

A number p (0 < p < 1) indicating the desired probability mass to include in the intervals.

seed

A single integer for sampling from the posterior.

...

Not currently used

Value

A data frame with summary statistics and a row for each model.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Example objects from the "Getting Started" vignette at
#  https://topepo.github.io/tidyposterior/articles/Getting_Started.html

# File for pre-run model is at
ex_dat <- "https://bit.ly/2OJdvl1"

# load(load(url(ex_dat))

# posterior_values <- tidy(roc_model)
# summary(posterior_values)

tidyposterior documentation built on May 2, 2019, 2:49 p.m.