metropolis_step | R Documentation |
Sample reporting parameters using a single Metropolis step
metropolis_step(
snapshot_with_true_cases_df,
current_reporting_parameters,
logp_current,
prior_parameters,
metropolis_parameters
)
snapshot_with_true_cases_df |
a tibble with four columns: time_onset, time_reported, cases_reported, cases_true |
current_reporting_parameters |
a tibble with column names: "reporting_piece_index", "mean", "sd" |
logp_current |
the value fo the log-probability at current parameter values |
prior_parameters |
named list with elements 'mean_mu', 'mean_sigma', 'sd_mu', 'sd_sigma' representing the gamma prior parameters for the mean and sd parameters of the reporting parameters (itself described by a gamma distribution) |
metropolis_parameters |
named list of 'mean_step', 'sd_step' containing step sizes for Metropolis step |
a named list with two elements: 'parameter', a parameter value (which may be a non-scalar); and 'logp', the log-probability corresponding to the parameter value returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.