gen_post: Prepare a posterior log-pdf function for use in Bayesian...

Description Usage Arguments Details

View source: R/likelihood.R

Description

Create a function that computes and sums the log-prior and the log-posterior.

Usage

1
2
3
4
5
6
7
gen_post(
  prior_weight = 10,
  fixed_parms = NULL,
  maxdate = NULL,
  hparms = list(),
  verbose = FALSE
)

Arguments

prior_weight

Factor to multiply the prior by. Default is 10. If set to NULL, make it equal to the number of counties for which we have confirmed COVID-19 cases.

fixed_parms

A named vector of parameters to use as fixed values for parameters not passed to the likelihood function. Note these "fixed" parameters can still be overridden by passing an explicit value.

maxdate

Latest date to use in the calibration.

hparms

Named vector of hyperparameters for the likelihood. See details for supported hyperparameters.

verbose

If TRUE, have the prior and likelihood print additional diagnostic information.

Details

Recognized hyperparameters are

fsalpha

Alpha parameter for the beta distribution of symptomatic fraction in the likelihood.

fsbeta

Beta parameter for the beta distribution of symptomatic fraction in the likelihood. Note the most likely value of fs is \frac{α-1}{α+β-2}


rplzzz/CovMitigation documentation built on June 7, 2021, 8:48 a.m.