Exam_2_Linear.docx.docx - Final Exam Question 2 Phuong M...

This preview shows page 1 - 2 out of 6 pages.

Final Exam Question 2 Phuong M Nguyen 6/17/2020 Use the Iris Dataset which can be loaded into the Rstudio environment iris_exams.csvPreview the document (click to download). The questions below concentrate on lessons 9 and 10. Provide at least the following in the report for full credit: (1) Linear Regression Analysis: Capture a Regression Model with Only Significant Variables. Set the dependent variable to ‘Species’. Even though the variable is categorical and regression is not the proper model to use we will ignore this fact for the purpose of the assignment. Capture the final model summary. Provide any visuals that help interpret the results. Provide an interpretation of the results in your own words. Support your response with results captured from the linear regression analysis. Dataset exam = read.csv ( "iris_exams.csv" ) Fixing Missing Data summary (exam) ## id Species Sepal.Length Sepal.Width Petal.Length ## S001 : 1 setosa :100 Min. :4.417 Min. :1.796 Min. :1.135 ## S002 : 1 versicolor:100 1st Qu.:5.209 1st Qu.:2.720 1st Qu.:1.566 ## S003 : 1 virginica :100 Median :5.844 Median :2.992 Median :4.228 ## S004 : 1 Mean :5.857 Mean :3.064 Mean :3.738 ## S005 : 1 3rd Qu.:6.448 3rd Qu.:3.375 3rd Qu.:5.205 ## S006 : 1 Max. :8.478 Max. :4.810 Max. :6.955 ## (Other):294 ## Petal.Width ## Min. :-0.03371 ## 1st Qu.: 0.30278 ## Median : 1.28776 ## Mean : 1.19830

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture