Question: Section 2 : write a R script to complete the following tasks on ANOVA and Regression Create a data frame named e 0 1 after
Section : write a R script to complete the following tasks on ANOVA and Regression
Create a data frame named e after importing airquality data. Note: you can find codes that allow you to generate a data frame from submodule R on Data management". Generate a subset of data frame that excludes all missing values and name it as
Sort the data frame by variable Month and name the sorted data as e
Check data type in data frame e using function str
Find the unique month value using table or unique
Generate a boxplot of ozone level by month. Mark y axis as "Ozone", X axis as "Month"
Run Oneway ANOVA
Convert variable Month from a numeric variable to a string variable. Alternatively, you can also encode Month into a factor variable.
Run parametric oneway ANOVA that allows to test if the mean ozone levels are the same across months.
Print your ANOVA result using summary function
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
