predict.ah {surveillance}R Documentation

Predictions from a HHH model

Description

Use a ah or ahg object for prediction.

Usage

## 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 * nu_it), "epi.own" and "epi.neighbours" return the epidemic part (i.e. λ_i * y_i,t and phi_i * sum_(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.


[Package surveillance version 1.0-3 Index]