Learn R Programming

daltoolbox (version 1.1.727)

R2.ts: R2

Description

Compute the R-squared (R2) between actual values and forecasts of a time series

Usage

R2.ts(actual, prediction)

Value

returns a number, which is the calculated R2

Arguments

actual

real observations

prediction

predicted observations