extract_prior_samples: Extract sampled prior beliefs from fitted model to a...

Description Usage Arguments Value

View source: R/stan-conj-update.R

Description

Extract sampled prior beliefs from fitted model to a data_frame

Usage

1
2
extract_prior_samples(fitted, cat_levels,
  samples = rstan::extract(fitted))

Arguments

fitted

Fitted stan model for inferring prior

cat_levels

Labels for the categories.

samples

Optional: Samples extracted from fitted model with rstan::extract, will override fitted if provided.

Value

a data_frame, with one row per sample and columns for iterations (sample number), category, mu_0, sigma_0, kappa_0, and nu_0.


kleinschmidt/beliefupdatr documentation built on May 24, 2020, 8:26 p.m.