calc_nhosp: Calculate the expected number of hospitalizations for a model

Description Usage Arguments Details Value

View source: R/likelihood.R

Description

Calculate the expected number of hospitalizations by day, based on an assumed fraction of symptomatic patients that eventually go to the hospital.

Usage

1
calc_nhosp(ph, modout, mfadjust = TRUE)

Arguments

ph

Per-person hospitalization probability

modout

Model output from run_scenario

mfadjust

If TRUE, adjust for market fraction

Details

To make this calculation, we have to convert this probability to a rate. If the recovery rate is γ = 1/D0, then the hospitalization rate r_h that gives the desired probability P_h is

r_h = γ \frac{P_h}{1-P_h}

Value

Data frame of time and expected hospitalizations


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