data(COVID19Cases_geoRegion)
# Get SWISS COVID19 cases at NUTS 3 level
COVID19Cases_ZH <-
COVID19Cases_geoRegion[
(COVID19Cases_geoRegion$geoRegion == "ZH")
& (COVID19Cases_geoRegion$sumTotal > 0)
,]
# COVID cases for Zurich
expgrowth_BS <- exponential_growth (
y = COVID19Cases_ZH$sumTotal[1:28],
t = COVID19Cases_ZH$datum[1:28]
)
# Exponential growth model for the first 4 weeks
summary(expgrowth_BS)
# Summary of exponential growth model
expgrowth_BS@doubling
# Doubling rate
Run the code above in your browser using DataLab