Question
Update: The data is below, the question is not incomplete. I just need an understanding of the R script formula to use to get to
Update: The data is below, the question is not incomplete. I just need an understanding of the R script formula to use to get to the right answer.
Use R Script in R studio to complete the following exercise and provide
The question below uses the pollution data set, which can be called by using avgpm25csv file. It includes data on daily pollution level (PM 2.5) which are available from the U.S. EPA web site. The variables are: pm25: Pollution level, fips: county code, region, longitude, latitude.
Construct two subsets of data, one that contains all observations of west region, second that contains all observations in east region. Assuming variances are not equal, run an independent samples t-test to check the equality of means of pollution level by using first 134 observations of each subset. Report the p value of the t-testand comment on its meaning.
pm 25 fips region longitude latitude 1 9.771185 1003 east -87.74826 30.59278 N 9.993817 1027 east -85.84286 33.26581 3 10.688618 1033 east -87.72596 34.73148 4 11.337424 1049 east -85.79892 34.45913 5 12.119764 1055 east -86.03212 34.01860 6 10.827805 1069 east -85.35039 31.18973 7 11.583928 1073 east -86.82805 33.52787 8 11.261996 1089 east -86.58823 34.73079 9 9.414423 1097 east -88.13967 30.72226 10 11.391494 1103 east -86.91892 34.50702 pm 25 fips region longitude latitude 1 9.771185 1003 east -87.74826 30.59278 N 9.993817 1027 east -85.84286 33.26581 3 10.688618 1033 east -87.72596 34.73148 4 11.337424 1049 east -85.79892 34.45913 5 12.119764 1055 east -86.03212 34.01860 6 10.827805 1069 east -85.35039 31.18973 7 11.583928 1073 east -86.82805 33.52787 8 11.261996 1089 east -86.58823 34.73079 9 9.414423 1097 east -88.13967 30.72226 10 11.391494 1103 east -86.91892 34.50702Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started