predict.ah {surveillance} | R Documentation |
Use a ah
or ahg
object for prediction.
## S3 method for class 'ah': predict(object,newdata=NULL, type=c("response","endemic","epi.own","epi.neighbours"), ...)
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 |
this function is still experimental
matrix of values containing the mean μ_it for each region and time point.