Calculate probability of dying when hospitalised

ph_calculate_pdeath(df)

Arguments

df

A data.frame of cases data pulled from the Philippines COVID-19 Data Drop.

Value

Value for probability of dying when hospitalised.

Examples

df <- ph_get_cases()
#> Getting information on Google Drive directory structure of the DoH Data Drop for latest available data up to 2020-06-23.
ph_calculate_pdeath(df = df)
#> #> 1-sample proportions test with continuity correction #> #> data: colSums(casesDeaths)[4] out of colSums(casesDeaths)[2], null probability 0.5 #> X-squared = 3585.4, df = 1, p-value < 2.2e-16 #> alternative hypothesis: true p is not equal to 0.5 #> 95 percent confidence interval: #> 0.1182303 0.1346363 #> sample estimates: #> p #> 0.1262075 #>