Get response variable from time series model.
getResponse is a generic function for extracting the historical data from a time series model (including
fracdiff), a linear model of class
lm, or a forecast object. The function invokes particular methods which depend on the class of the first argument.
- a time series model or forecast object.
- Additional arguments that are ignored.