0

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. enter image description here

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

milos.ai
  • 3,882
  • 7
  • 31
  • 33
Jazzmine
  • 1,837
  • 8
  • 36
  • 54
  • 1
    Have you called `library(caret)` before calling `R2(predicted,observed)`? – lukeA Nov 21 '16 at 12:48
  • I don't think this is a duplicate. I have followed the pertinent steps listed in the question that is considered a duplicate of this. I am asking if a specific function is still present in a specific package, despite the documentation in the book which is generating an error. I feel I have done the due diligence to ask the question. I can event get help(R2) to work but still get the error. – Jazzmine Nov 21 '16 at 16:27
  • Have you read the comment? – lukeA Nov 21 '16 at 16:45

0 Answers0