Question: Solve the questions with an RStudio script. Load the nycflights13 package (library(nycflights13)) and use the flights dataset. I want to know if there is a

Solve the questions with an RStudio script.

Load the nycflights13 package (library(nycflights13)) and use the flights dataset. I want to know if there is a difference in the average dep_delay between United (UA) and Delta (DL) on flights leaving JFK for LAX. T Filter the data to include only those flights (you'll need carrier %in% c("UA","DL") and a few more) then utilize the t.test function.

1.) What is the value of the test statistic?

2.) The p-value you should have gotten in the previous question should have been 0.03 (that should help with the previous problem!). Given that p-value, what is the appropriate conclusion at the level?

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the RStudio script to a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!