Question: I don't know how to code #1 (Python). Dataframe name is 'df' where year is 1997, 1998, 1999, 2000, id is route identifier, dist is

I don't know how to code #1 (Python). Dataframe name is 'df'I don't know how to code #1 (Python). Dataframe name is 'df'

where year is 1997, 1998, 1999, 2000, id is route identifier, dist is the distance of the route measured in miles, passen is the average number of passengers per day, fare is the average one-way fare of the route measured in dollar per day, conc is the percent of market controlled by the biggest carrier on route (1) Generate a new variable called yr00 which takes on values 1 if the observation is in 2000 and 0 otherwise (a dummy variable). (2) Estimate the model 1 using OLS and print the summary results. Model 1): fare = B1 + B2dist + B3conc + (3) Consider the null hypothesis that B2 = 0 and B3 = 0 in Model 1. What is the alternative hypothesis? Conduct the test and state your decision. (4) State in words and numbers how we should interpret the estimated coefficients respectively in Model 1. (for full credit explain how you know if it is statistically significant) In [ ]: #Write your code below and tap your answer here. #1 where year is 1997, 1998, 1999, 2000, id is route identifier, dist is the distance of the route measured in miles, passen is the average number of passengers per day, fare is the average one-way fare of the route measured in dollar per day, conc is the percent of market controlled by the biggest carrier on route (1) Generate a new variable called yr00 which takes on values 1 if the observation is in 2000 and 0 otherwise (a dummy variable). (2) Estimate the model 1 using OLS and print the summary results. Model 1): fare = B1 + B2dist + B3conc + (3) Consider the null hypothesis that B2 = 0 and B3 = 0 in Model 1. What is the alternative hypothesis? Conduct the test and state your decision. (4) State in words and numbers how we should interpret the estimated coefficients respectively in Model 1. (for full credit explain how you know if it is statistically significant) In [ ]: #Write your code below and tap your answer here. #1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!