Error performing command r <- stdres - Error in stdres (ols): could not find function "stdres". What do I do?

I'm from Brazil. I'm a beginner in R. Sorry for the mistakes in English.
When using the Robust Regression script to the trees data, an error occurs in the line where stdres is present. I have already downloaded all the necessary packages (MASS and FORAIGNE) and still give this error.

Could someone help me understand what it could be causing? Follow the print.

hugs

You have to load the MASS library before using the stdres() function

library(MASS) 
2 Likes

You helped me. I did not know I had to carry it. Friend, the R will make me lose my hair more fingers. Thank you very much.

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.