FQ2.docx - FQ2 Boson 2020-11-09 abstract =...

This preview shows page 1 - 3 out of 5 pages.

The preview shows page 1 - 3 out of 5 pages.
FQ2Boson2020-11-09abstract =read.csv("iris_exams.csv")summary(abstract)## id Species Sepal.Length Sepal.Width## Length:300 Length:300 Min. :4.417 Min. :1.796 ## Class :character Class :character 1st Qu.:5.209 1st Qu.:2.720 ## Mode :character Mode :character Median :5.844 Median :2.992 ## Mean :5.857 Mean :3.064 ## 3rd Qu.:6.448 3rd Qu.:3.375 ## Max. :8.478 Max. :4.810 ## Petal.Length Petal.Width ## Min. :1.135 Min. :-0.03371 ## 1st Qu.:1.566 1st Qu.: 0.30278 ## Median :4.228 Median : 1.28776 ## Mean :3.738 Mean : 1.19830 ## 3rd Qu.:5.205 3rd Qu.: 1.87452 ## Max. :6.955 Max. : 2.62487abstract$Species[abstract$Species =="versicolor"] <-1abstract$Species[abstract$Species =="setosa"] <-2abstract$Species[abstract$Species =="virginica"] <-3model1 =lm(Species ~Sepal.Length +Sepal.Width +Petal.Length +Petal.Width , data =abstract)summary(model1)## ## Call:## lm(formula = Species ~ Sepal.Length + Sepal.Width + Petal.Length + ## Petal.Width, data = abstract)## ## Residuals:## Min 1Q Median 3Q Max ## -1.6395 -0.5336 0.1141 0.4571 1.3656 ## ## Coefficients:## Estimate Std. Error t value Pr(>|t|) ## (Intercept) 0.2789 0.4379 0.637 0.5246 ## Sepal.Length -0.3122 0.1274 -2.450 0.0149 * ## Sepal.Width 0.8464 0.1216 6.960 2.21e-11 ***## Petal.Length -0.1268 0.1340 -0.946 0.3450 ## Petal.Width 1.1932 0.2112 5.651 3.77e-08 ***
## ---## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1## ## Residual standard error: 0.6456 on 295 degrees of freedom## Multiple R-squared:

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags
Statistics, Normal Distribution, Standard Deviation, Errors and residuals in statistics, Qu, Rsquared

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture