Skip to contents

Link dates by time for posterior parameter estimates

Usage

link_dates_with_posterior(posterior, data, timespan = 7, mod_end = 0)

Arguments

posterior

A data frame of summarised posterior estimates as returned by cmdstanr::summary() with an additional type variable which contains the following character string options: "non-VOC", "VOC", "Combined", "Overall".

data

A list of data as returned in the "data" entry of the output returned by fv_sample().

timespan

Integer, defaults to 7. Indicates the number of days between each observation. Defaults to a week.

mod_end

Integer, defaults to 0. Amount to shift the end date of estimates.

Value

A posterior data.frame with an additional data column.