Skip to contents

This function takes in vectors of parameters, grouped by their indexing, and returns a tidy dataframe with all the draws of all the parameters and the corresponding indices

Usage

get_full_param_distrib(
  all_draws,
  static_params,
  vector_params,
  matrix_params = NA
)

Arguments

all_draws

draws from the stan object

static_params

character vector of parameters that are static and don't need any indexing

weekly_params

character vector of parameters that are indexed by week

daily_ww_params

character vector of parameters that are indexed by day (t) and ww lab site

ww_lab_site_params

character vector of parameters that are indexed by unique combo of the wastewater lab and site

day_of_week_params

character vector of parameters that are indexed by day of week

Value

a dataframe containing the posterior distribution of each parameter With indices corresponding to the parameters that have them