The observed value of the test statistic is t obs 2 5

This preview shows page 2 - 4 out of 6 pages.

Question 2. (14 pts)The following data consists of operating costs for a number of US airlines.STAT 331, Oct. 20, 2015, 5:30pm-6:20pmPage 2 of 6
head(airlines)Airline Length Speed TimePopCost1 All American57133 6.10 20200 116.32American270216 6.93 5692843.03Bonanza100140 4.45183 141.54Braniff176182 6.60 1186950.65Capital142167 7.47 4109751.06Central51134 4.671757 318.5The variables areAirline: name of the airlineLength: average length of flight (miles)Speed: average speed of planes (miles per hour)Time: average flight time per plane (hours)Pop: population served (1000s)Cost: operating cost (cents per unit revenue)
i. (2 pts) WriteRcode to estimate the parameters of modelMand display the MLEˆβ.
ii. (3 pts) WriteRcode to plot the model residuals vs. fitted values (a basic plot withoutaxis labels will receive full marks).

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture