Run validity checks on the PMF returned from the file
check_returned_pmf.Rd
We're treating this input as possibly invalid because it's from an external file. We're still updating the schema and this process has been a frequent source of problems. We want to be alert to any unexpected changes in schema or format.
Arguments
- pmf_df
A dataframe with columns
value
andreference_date
.- parameter
One of "generation interval", "delay", or "right-truncation"
- disease
A string specifying the disease being modeled. One of
"COVID-19"
or"Influenza"
or"RSV"
.- as_of_date
Use the parameters that were used in production on this date. Set for the current date for the most up-to-to date version of the parameters and set to an earlier date to use parameters from an earlier time period.
- geo_value
An uppercase, two-character string specifying the geographic value, usually a state or
"US"
for national data.- report_date
An optional parameter to subset the query to a parameter on or before a particular
report_date
. Right now, the only parameter with report date-specific estimates isright_truncation
. Note that this is similar to, but different fromas_of_date
. Thereport_date
is used to select the particular value of a time-varying estimate. This estimate may itself be regenerated over time (e.g., as new data becomes available or with a methodological update). We can pull the estimate for datereport_date
as generated on dateas_of_date
.- path
A path to a local file
See also
Other parameters:
opts_formatter
,
read_disease_parameters()
,
read_interval_pmf()