Lab Assignment
Lab Assignment
Lab Assignment
Yogendra panwar
19HS20048
DATE 29/03/2023
I = Airline,
T = Year,
PF = Fuel price,
LF = Load factor, the average capacity utilization of the fleet.
Q = Output, in revenue passenger miles, index number,
C = Total cost, in $1000, the data
Methodology
To identify the factors that influence the total cost of U.S. airlines, a
multiple linear regression model was fitted using the predictors
available in the dataset.
The model is of the form:
Total cost = β0 + β1Airline + β2Year + β3Output + β4Fuel price +
β5*Load factor + ε
where β0 is the intercept, β1 to β5 are the coefficients for the
predictors, and ε is the error term.
The model was fitted using the OLS (ordinary least squares) method,
and the significance of the coefficients was tested using t-tests and p-
values.
The model was also evaluated for goodness of fit using the R-squared
value and the residual plots.
STATA PART
Notes:
. xtset i t
panel variable: i (strongly balanced)
time variable: t, 1 to 15
delta: 1 unit
.
. summarize i t c q pf lf
i 90 3.5 1.717393 1 6
t 90 8 4.344698 1 15
c 90 1122524 1192075 68978 4748320
q 90 .5449946 .5335865 .037682 1.93646
pf 90 471683 329502.9 103795 1015610
. reg t c q pf lf
Statistic p-value
. xtreg i c q pf lf
the panel variable i may not be included as an independent variable
r(198);
. xtreg i t c q pf lf
the panel variable i may not be included as an independent variable
r(198);
. xtreg t c q pf lf
sigma_u 0
sigma_e 1.2755837
rho 0 (fraction of variance due to u_i)
Conclusion
This report provides an analysis of a subset of a larger dataset
containing cost data for U.S. airlines from 1970 to 1984. The subset
consists of 90 observations on six firms for 15 years. The aim of this
analysis is to identify the factors that influence the total cost of U.S.
airlines and to build a predictive model for total cost based on the
available predictors. The predictors include airline, year, output, fuel
price, and load factor. The response variable is the total cost, measured
in $1000.
5.0e+06
0 1 2 3
5.0e+06
4 5 6
0
0 5 10 15 0 5 10 15 0 5 10 15
T
I T
C Q
PF LF
Graphs by I
Thank You