predict-fitsir-method: Forecast from an SIR fit and find confidence interval

Description Usage Arguments Details Examples

Description

Forecast from an SIR fit and find confidence interval

Usage

1
2
3
## S4 method for signature 'fitsir'
predict(object, level, times, method = c("delta",
  "mvrnorm", "wmvrnorm"), debug = FALSE)

Arguments

object

fitsir object

level

the confidence level required

times

time vector to predict over. Default is set to the time frame of the data.

method

confidence interval method. Default is set to Delta method.

debug

print debugging output?

Details

See vignette for different methods: vignette("details", package="fitsir")

Examples

1
2
3
4
harbin2 <- setNames(harbin, c("times", "count"))
ss <- startfun(harbin2, type="death")
ff <- fitsir(harbin2, start=ss, type="death", method="BFGS")
predict(ff, level=0.95)

bbolker/fitsir documentation built on June 4, 2019, 8:28 a.m.