extract_timeseries_var: Extract the values over time of a variable from a Stan fit

View source: R/stan_postprocessing.R

extract_timeseries_varR Documentation

Extract the values over time of a variable from a Stan fit

Description

Extract the values over time of a variable from a Stan fit

Usage

extract_timeseries_var(var_name, posterior_df)

Arguments

var_name

A string that indicates the variable's name for which the function will construct the timeseries.

posterior_df

A Stan fit object converted into a data frame

Value

A data frame

Examples

posterior_df <- data.frame(`var[1]` = rep(0, 2), `var[2]` = rep(1, 2),
                            check.names = FALSE)
extract_timeseries_var("var", posterior_df)

readsdr documentation built on May 29, 2024, 2:45 a.m.