Below is the code I run to test the data. Data is in covid repository. I think it would be good to add it to the help file. Perhaps the data could be added to the package so we could do something like data(SFhospitalizations) and then run buildAR and testAR.
Below is the code I run to test the data. Data is in covid repository. I think it would be good to add it to the help file. Perhaps the data could be added to the package so we could do something like data(SFhospitalizations) and then run buildAR and testAR.
dat <- read.delim("SF_COVID-19_Hospitalizations.csv",header=TRUE,sep=",",as.is=TRUE) hosp <- data.frame(matrix(dat$PatientCount,ncol=4)) names(hosp) <- c("covid.acute","covid.icu","suspected.acute","suspected.icu") chosp <- hosp$covid.acute+hosp$covid.icu test.buildAR <- buildAR(chosp,7,method="equal") predict.buildAR <- predictAR(test.buildAR,pdays=7,wsize=7,nsim=10000,skip=15,method="equal")