Learn R Programming

tsensembler (version 0.0.2)

r_squared: Computing R squared

Description

Also known as the coefficient of determination

Usage

r_squared(y, y_hat)

Arguments

y

A numeric vector representing the actual values.

y_hat

A numeric vector representing the forecasted values.

See Also

Other error/performance functions: ae, mae, mase, mse, se