powered by
Compute the R-squared (R2) between actual values and forecasts of a time series
R2.ts(actual, prediction)
returns a number, which is the calculated R2
real observations
predicted observations