extract_scalar_params: Extract scalar parameters from a fitted model

extract_scalar_paramsR Documentation

Extract scalar parameters from a fitted model

Description

Internal helper to extract scalar parameters (e.g., fraction_observed) from the params array based on ⁠param_id_*⁠ variables.

Usage

extract_scalar_params(x, stan_data)

Arguments

x

A fitted model object with ⁠$fit⁠ and ⁠$args⁠ components.

stan_data

The stan data list from x$args.

Value

A named list of dist_spec objects representing the posterior distributions of scalar parameters.


EpiNow2 documentation built on June 17, 2026, 1:07 a.m.