tidy.perf_mod: Extract Posterior Distributions for Models

View source: R/posteriors.R

tidy.perf_modR Documentation

Extract Posterior Distributions for Models

Description

tidy can be used on an object produced by perf_mod() to create a data frame with a column for the model name and the posterior predictive distribution values.

Usage

## S3 method for class 'perf_mod'
tidy(x, seed = sample.int(10000, 1), ...)

Arguments

x

An object from perf_mod()

seed

A single integer for sampling from the posterior.

...

Not currently used

Details

Note that this posterior only reflects the variability of the groups (i.e. the fixed effects). This helps answer the question of which model is best for this data set. If does not answer the question of which model would be best on a new resample of the data (which would have greater variability).

Value

A data frame with the additional class "posterior"


topepo/tidyposterior documentation built on Oct. 18, 2023, 8:30 p.m.