Professional Documents
Culture Documents
The R function lm is used to fit linear (regression) models. The syntax for this command is
given below:
lm(formula, data, subset, weights, na.action, method = "qr", model = TRUE, x = FALSE, y =
FALSE, qr = TRUE, singular.ok = TRUE, contrasts = NULL, offset, …)
In help also check for “An object of class "lm" is a list containing at least the following
components” how to retrieve various components of object of class lm.