powered by
The function in_sample returns in-sample predictions from a praislm or a twoStepsBenchmark object.
in_sample
in_sample(object, type = "changes")
a named matrix time series of two columns, one for the response and the other for the predicted value. A "tscomparison" class is added to the object.
"tscomparison"
an object of class "praislm" or "twoStepsBenchmark".
"praislm"
"twoStepsBenchmark"
"changes" or "levels". The results are either returned in changes or in levels.
"changes"
"levels"
The functions plot and autoplot can be used on this object to produce graphics.
plot
autoplot
The predicted values are different from the fitted values :
they are eventually reintegrated.
they contain the autocorrelated part of the residuals.
Besides, changes are relative to the latest benchmark value, not the latest predicted value.
in_disaggr in_revisions in_scatter plot.tscomparison
benchmark <- twoStepsBenchmark(turnover,construction,include.rho = TRUE) plot(in_sample(benchmark))
Run the code above in your browser using DataLab