predict.ah: Predictions from a HHH model

Description Usage Arguments Value Note

View source: R/algo_hhh.R

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

Value

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

Note

This function is experimental!


surveillance documentation built on Oct. 9, 2017, 3:02 p.m.