extract_updated_samples: Extract sampled updated beliefs from fitted model to...

Description Usage Arguments Value

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

Description

Extract sampled updated beliefs from fitted model to data_frame

Usage

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

Arguments

fitted

Fitted stan model for inferring prior

cat_levels

Labels for the categories.

group_levels

Labels for groups/conditions (for updated)

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, group, mu_n, sigma_n, kappa_n, and nu_n.


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