You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below code generates the following error statement:
# Load Diamond Princess Datacovid_data<- read.csv("diamond_princess.csv")
covid_data$date<- as.Date(covid_data$date)
# Truncate real-time data to end Febcovid_data_rt<-covid_data|> filter(date<"2020-03-01")
# Get onset-to-death distributiononset_to_death_period_in<-epiparameter::epiparameter_db(
disease="covid",
epi_name="onset to death",
single_epiparameter=TRUE
)
# Calculate CFR and 95% CIcfr_estimate<- cfr_rolling(
data=covid_data_rt,
delay_density=function(x) density(onset_to_death_period_in, x)
)
Some daily ratios of total deaths to total cases with known outcome are below 0.01%: some CFR estimates may be unreliable.FALSE
Error in if (total_cases < poisson_threshold || (p_mid >= 0.05)) { :
missing value where TRUE/FALSE needed
This suggests that the if statements may not be covering all edge cases currently. It may be worth considering removing all together given the limited efficiency benefits (see also issue #164 )
The text was updated successfully, but these errors were encountered:
The below code generates the following error statement:
This suggests that the
if
statements may not be covering all edge cases currently. It may be worth considering removing all together given the limited efficiency benefits (see also issue #164 )The text was updated successfully, but these errors were encountered: