1.

Function used for linear regression in R is __________(a) lm(formula, data)(b) lr(formula, data)(c) lrm(formula, data)(d) regression.linear(formula, data)The question was asked by my college professor while I was bunking the class.My query is from Linear Regression in chapter Commands, Packages, Visualizing Data and Linear Regression of R Programming

Answer»

Right option is (a) lm(formula, DATA)

Easiest EXPLANATION: lm(formula, data) refers to a linear model in which formula is the object of the class “formula”, representing the RELATION between variables. Now this formula is on applied on the data to create a RELATIONSHIP model.



Discussion

No Comment Found

Related InterviewSolutions