predict.poisson_rt: Predict observed data using estimated Rt
Description
Given an object of class poisson_rt produced with estimate_rt(),
calculate predicted observed cases for the estimated Rt values.
Note: This function is not intended for "new x" or to produce forecasts, but
rather to examine how Rt relates to observables.
Usage
# S3 method for poisson_rt
predict(object, lambda = NULL, ...)
Value
A vector or matrix of predicted case counts.
Arguments
object
An object of class poisson_rt produced with estimate_rt().
lambda
Select which lambdas from the object to use. If not provided
(the default), all are returned. Note that new lambdas not originally
used in the estimation procedure may be provided, but the results will be
calculated by linearly interpolating the estimated Rt's.