function in rstudio

> model<-1m(y-x,data=df)
Error: unexpected symbol in "model<-1m"
in different functions can't make a model - because function 1m is an unexpected symbol..

any solutions?

I think that should be a lm function not 1m.


Also, welcome to Posit forum! In future, I would really encourage you to review the following guide, FAQ: Tips for writing R-related questions. For example, the guide emphasizes asking coding questions with formatted code-chunks and a reprex, which would make it easier for people who want to help you to pick up your issue and attempt to run with a solution.

This topic was automatically closed 42 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.