Which function in R is used for linear regression analysis?

  • lm()
  • regression()
  • linearModel()
  • regress()
The lm() function in R is specifically designed for linear regression analysis. It allows users to build linear models and analyze the relationships between variables in a dataset. Using other options like regression() or regress() for this purpose would result in errors.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *