R/03-ph_calculate_rates.R
ph_calculate_pdeath.Rd
Calculate probability of dying when hospitalised
ph_calculate_pdeath(df)
df | A data.frame of cases data pulled from the Philippines COVID-19 Data Drop. |
---|
Value for probability of dying when hospitalised.
#>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 #>