Question: This question uses the airquality dataset available with R . This data reports the Ozone ( Ozone level ) , Solar.R ( Solar radiation )
This question uses the airquality dataset available with R This data reports the OzoneOzone level Solar.R Solar radiation Wind Wind speeds and Temp Temperature for each day for some months in New York city.
Load the airquality dataset from the package datasets into the dataframe aQ by typing the following commands.
librarydatasets
aQ airquality
headaQ
a Run a simple regression with Ozone level as the dependent variable and Wind speed as the independent variable. Show only the Rcode.
b Use the summary command to display regression output. Show the Rcode and the results. Write down the regression model using the coefficient values.
c Based on the summary of the regression, comment on fit Rsquared and significance of the regression. What conclusion can you draw on the impact of Wind on Ozone level?
d Using the regression model, predict the average Ozone level for day with wind speeds of Show the Rcode the results.
e Plot the scatter plot of Ozone level versus Wind speed and the regression line using ggplot Show the R code and output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
