List of 13 $ coefficients : Named num [1:4] 2.251 0.804 1.459 1.947 ..- attr(*, "names")= chr [1:4] "(Intercept)" "Sepal.Width" "Speciesversicolor" "Speciesvirginica" $ residuals : Named num [1:150] 0.0361 0.2379 -0.1228 -0.1424 -0.1442 ... ..- attr(*, "names")= chr [1:150] "1" "2" "3" "4" ... $ effects : Named num [1:150] -71.566 -1.188 0.279 8.525 -0.114 ... ..- attr(*, "names")= chr [1:150] "(Intercept)" "Sepal.Width" "Speciesversicolor" "Speciesvirginica" ... $ rank : int 4 $ fitted.values: Named num [1:150] 5.06 4.66 4.82 4.74 5.14 ... ..- attr(*, "names")= chr [1:150] "1" "2" "3" "4" ... $ assign : int [1:4] 0 1 2 2 $ qr :List of 5 ..$ qr : num [1:150, 1:4] -12.2474 0.0816 0.0816 0.0816 0.0816 ... .. ..- attr(*, "dimnames")=List of 2 .. .. ..$ : chr [1:150] "1" "2" "3" "4" ... .. .. ..$ : chr [1:4] "(Intercept)" "Sepal.Width" "Speciesversicolor" "Speciesvirginica" .. ..- attr(*, "assign")= int [1:4] 0 1 2 2 .. ..- attr(*, "contrasts")=List of 1 .. .. ..$ Species: chr "contr.treatment" ..$ qraux: num [1:4] 1.08 1.02 1.05 1.11 ..$ pivot: int [1:4] 1 2 3 4 ..$ tol : num 1e-07 ..$ rank : int 4 ..- attr(*, "class")= chr "qr" $ df.residual : int 146 $ contrasts :List of 1 ..$ Species: chr "contr.treatment" $ xlevels :List of 1 ..$ Species: chr [1:3] "setosa" "versicolor" "virginica" $ call : language lm(formula = frm2, data = iris) $ terms :Classes 'terms', 'formula' language Sepal.Length ~ Sepal.Width + Species .. ..- attr(*, "variables")= language list(Sepal.Length, Sepal.Width, Species) .. ..- attr(*, "factors")= int [1:3, 1:2] 0 1 0 0 0 1 .. .. ..- attr(*, "dimnames")=List of 2 .. .. .. ..$ : chr [1:3] "Sepal.Length" "Sepal.Width" "Species" .. .. .. ..$ : chr [1:2] "Sepal.Width" "Species" .. ..- attr(*, "term.labels")= chr [1:2] "Sepal.Width" "Species" .. ..- attr(*, "order")= int [1:2] 1 1 .. ..- attr(*, "intercept")= int 1 .. ..- attr(*, "response")= int 1 .. ..- attr(*, ".Environment")= .. ..- attr(*, "predvars")= language list(Sepal.Length, Sepal.Width, Species) .. ..- attr(*, "dataClasses")= Named chr [1:3] "numeric" "numeric" "factor" .. .. ..- attr(*, "names")= chr [1:3] "Sepal.Length" "Sepal.Width" "Species" $ model :'data.frame': 150 obs. of 3 variables: ..$ Sepal.Length: num [1:150] 5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9 ... ..$ Sepal.Width : num [1:150] 3.5 3 3.2 3.1 3.6 3.9 3.4 3.4 2.9 3.1 ... ..$ Species : Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1 1 1 1 ... ..- attr(*, "terms")=Classes 'terms', 'formula' language Sepal.Length ~ Sepal.Width + Species .. .. ..- attr(*, "variables")= language list(Sepal.Length, Sepal.Width, Species) .. .. ..- attr(*, "factors")= int [1:3, 1:2] 0 1 0 0 0 1 .. .. .. ..- attr(*, "dimnames")=List of 2 .. .. .. .. ..$ : chr [1:3] "Sepal.Length" "Sepal.Width" "Species" .. .. .. .. ..$ : chr [1:2] "Sepal.Width" "Species" .. .. ..- attr(*, "term.labels")= chr [1:2] "Sepal.Width" "Species" .. .. ..- attr(*, "order")= int [1:2] 1 1 .. .. ..- attr(*, "intercept")= int 1 .. .. ..- attr(*, "response")= int 1 .. .. ..- attr(*, ".Environment")= .. .. ..- attr(*, "predvars")= language list(Sepal.Length, Sepal.Width, Species) .. .. ..- attr(*, "dataClasses")= Named chr [1:3] "numeric" "numeric" "factor" .. .. .. ..- attr(*, "names")= chr [1:3] "Sepal.Length" "Sepal.Width" "Species" - attr(*, "class")= chr "lm"