FQ2.docx - FQ2 Shashaank 2020-10-12 abstract =...

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

The preview shows page 1 - 3 out of 5 pages.
FQ2Shashaank2020-10-12abstract =read.csv("iris_exams.csv")summary(abstract)##idSpeciesSepal.LengthSepal.Width##Length:300Length:300Min.:4.417Min.:1.796##Class :characterClass :character1st Qu.:5.2091stQu.:2.720##Mode:characterMode:characterMedian :5.844Median :2.992##Mean:5.857Mean:3.064##3rd Qu.:6.4483rdQu.:3.375##Max.:8.478Max.:4.810##Petal.LengthPetal.Width##Min.:1.135Min.:-0.03371##1st Qu.:1.5661st Qu.: 0.30278##Median :4.228Median : 1.28776##Mean:3.738Mean: 1.19830##3rd Qu.:5.2053rd Qu.: 1.87452##Max.:6.955Max.: 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:##Min1QMedian3QMax## -1.6395 -0.53360.11410.45711.3656##
## Coefficients:##Estimate Std. Error t value Pr(>|t|)## (Intercept)0.27890.43790.6370.5246## Sepal.Length-0.31220.1274-2.4500.0149 *## Sepal.Width0.84640.12166.960 2.21e-11 ***## Petal.Length-0.12680.1340-0.9460.3450## Petal.Width1.19320.21125.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

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

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture