Question: Homework: ANOVA and Regression using R The airquality data contains records on ozone, temperature, solar radiation, wind during May 1 to September 3 0 in
Homework: ANOVA and Regression using R
The airquality data contains records on ozone, temperature, solar radiation, wind during May to September in The following is a description of the variables.
Ozone: Mean ozone in parts per billion from to hours at Roosevelt Island
Solar.R: Solar radiation in Langleys in the frequency band Angstroms from to hours at Central Park
Wind: Average wind speed in miles per hour at and hours at LaGuardia Airport
Temp: Maximum daily temperature in degrees Fahrenheit at La Guardia Airport.
You can check the details of the airquality data.
Section : write a script to complete the following tasks on data cleaning and descriptive statistics:
Set your R working directory on your computer.
Import "airquality" data from any of the format: Rdata, csv or txt and name it as raw.
Change variable name "Solar.R to "SolarRidiation"
Get mean ozone level for the following sample or subsamples.
a the overall mean Ozone level for the entire sample
b mean ozone level when Temp is no higher than lang
c mean ozone level when Temp is higher than but below lang
d mean ozone level when Temp is above lang but wind is no higher than miles per hour
e mean ozone level when Temp is above lang but wind exceeds miles per hour
Create a histogram for Ozone level.
Calculate the variance and the standard deviation of Ozone
Get a subsample of data with no missing value for Ozone variable using naomit function and
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
