predict.ah: Predictions from a HHH model

Description Usage Arguments Details Value

Description

Use a ah or ahg object for prediction.

Usage

1
2
3
## S3 method for class 'ah'
predict(object,newdata=NULL, 
   type=c("response","endemic","epi.own","epi.neighbours"), ...)

Arguments

object

object of class ah or ahg

newdata

optionally, a disProgObject with which to predict; if omitted, the fitted mean is returned.

type

the type of prediction required. The default is on the scale of the response variable (endemic and epidemic part). The alternative "endemic" returns only the endemic part (i.e. n_it * ν_it), "epi.own" and "epi.neighbours" return the epidemic part (i.e. λ_i * y_i,t and φ_i * ∑_(j ~ i) y_j,t-1 )

...

not really used

Details

this function is still experimental

Value

matrix of values containing the mean μ_it for each region and time point.


jimhester/surveillance documentation built on May 19, 2019, 10:33 a.m.