I'm trying to call the RMSE and R2 functions in the caret package per the book Applied Predictive Modeling (page 100) but I an get error saying they are not found:
Error: could not find function "R2" Error: could not find function "RMSE"
This are how I am making the calls:
> R2(predicted,observed)
Error: could not find function "R2"
> RMSE(predicted,observed)
Error: could not find function "RMSE"
> library(caret)
> help(R2)
I've got the package loaded as shown in the screenshot.
I also didn't find it here using RSiteSearch call:
RSiteSearch("RMSE",restrict="function")
Are these functions no longer part of the package? I don't see them explicitly called at the caret site either
Thanks