lm() function in R Language is a linear model function, used for linear regression analysis.
formula: model description, such as x ~ y
Call: lm(formula = x ~ y) Coefficients: (Intercept) y 1.589e-15 5.000e-01
Call: lm(formula = y ~ x) Coefficients: (Intercept) x -1 1
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.