






Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!







Docente: Marcos de Oliveira Garcias
Discente: Bill Eglinton Flores Maricahua
Matrícula: 2020109000001489
Chapter 4
Application
1. Data on U.S. gasoline consumption for the years 1953 to 2004 are given in Table F2.2. Note the consumption data appear as total expenditure. To obtain the per capita quantity variable, divide GASEXP by GASP times Pop. The other variables do not need transformation.
First at all, we need to consider the following aspects:
Year: Year, 1953-2004.
GasExp: Total U.S. gasoline expenditure
Pop: U.S. total population in thousands
Gasp: Price index for gasoline
Income: Per capita disposable income
Pnc: Price index for new cars
Puc: Price index for used cars
Ppt: Price index for public transportation
Pd: Aggregate price index for consumer durables
Pn: Aggregate price index for consumer nondurables
Ps: Aggregate price index for consumer services
a. Compute the multiple regression of per capita consumption of gasoline on per capita income, the price of gasoline, the other prices, and a time trend. Report all results. Do the signs of the estimates agree with your expectations?
In this part of this application, we need to create the subsequent variables: consumption per capita and the time-trend of the gasoline. The, we have:
gen gpc=1000000gasexp/(gasppop) gen t =year- label variable gpc "gasoline per capita" label variable t "time trend" sum
reg gpc income gasp pnc puc ppt pd pn ps t
In summary, the price index for new cars is negative. Thus, if the price index of used cars increases, people prefer to buy regularly more new cars; in this way, the demand of gasoline also increases.
b. Test the hypothesis that at least in regard to demand for gasoline, consumers do not differentiate between changes in the prices of new and used cars.
In this part, we need to prove the hypotheses test where: H 0 : Coefficient of Price index for new cars = Coefficient of Price index for used cars H 1 : Coefficient ofPrice index for new cars ≠ Coefficient of Price index for used cars For this reason, we can see the test as follows:
In addition, if we consider the estimated value of F and P-value, we can observe a rejecting null hypothesis.
c. Estimate the own price elasticity of demand, the income elasticity, and the cross price elasticity with respect to changes in the price of public transportation. Do the computations at the 2004 point in the data. If we want to resolve this exercise, we need to the regression of betas of the rent and the price of public transportation. Thus, the following commands show: mfx, at ( 27113 123.901 133.9 133.3 209.1 114.8 172.2 222.8 52) eyex
Then, we need to use the subsequent commands: quietly scalar bincome=_b[income] quietly scalar bgasp=_b[ gasp] quietly scalar bppt=_b[ ppt] quietly scalar gpc2004=gpc[52]
quietly scalar income2004=income[52] quietly scalar gasp2004=gasp[52] quietly scalar ppt2004=ppt[52] scalar ep=bgasp(gasp2004/gpc2004) scalar ei=bincome(income2004/gpc2004) scalar ce=bppt*(ppt2004/gpc2004) scalar list ep ei ce
d. Reestimate the regression in logarithms so that the coefficients are direct estimates of the elasticities. (Do not use the log of the time trend.) How do your estimates compare with the results in the previous question? Which specification do you prefer? In this case, we need to estimate the log regression. Thus, we consider the following features: gen Lgpc=log( gpc) gen Lincome=log( income) gen Lgasp=log( gasp) gen Lpnc=log( pnc) gen Lpuc=log( puc) gen Lppt=log( ppt) gen Lpd=log( pd) gen Lpn=log( pn) gen Lps=log( ps) reg Lgpc Lincome Lgasp Lpnc Lpuc Lppt Lpd Lpn Lps t
So, in this part, we have a case of multicollinearity because exits between two explanatory variables in part a or part d and they have a strong linear relationship.
f. Notice that the price index for gasoline is normalized to 100 in 2000, whereas the other price indices are anchored at 1983 (roughly). If you were to renormalize the indices so that they were all 100.00 in 2004, then how would the results of the regression in part a change? How would the results of the regression in part d change? If we normalize the 2004 indices for 100.00, in this case, the linear regression
observed in a will not be affected due to the proximity to zero degree; that is, there is a homogeneity that allows the estimated parameters to be divided by the same scale factor. For this reason, according to Greene (2018): In the linear case, the coefficients would be divided by the same scale factor, so that xb would be unchanged, where x is a variable and b is the coefficient. In the loglinear case, since log(kx)=log(k)+log(x), the renormalization would simply affect the constant term. The price coefficients would be unchanged. In sum, if there were a variation in the logarithmic regression, then different results would be obtained, since the parameters would not be altered, because it would only have a direct effect on the constant. g. This exercise is based on the model that you estimated in part d. We are interested in investigating the change in the gasoline market that occurred in 1973. First, compute the average values of log of per capita gasoline consumption in the years 1953–1973 and 1974–2004 and report the values and the difference. If we divide the sample into these two groups of observations, then we can decompose the change in the expected value of the log of consumption into a change attributable to change in the regressors and a change attributable to a change in the model coefficients, as shown in Section 4.7.2. Using the Oaxaca–Blinder approach described there, compute the decomposition by partitioning the sample and computing separate regressions. Using your results, compute a confidence interval for the part of the change that can be attributed t.
First, we need to consider the following:
mean Lgpc if year<
scalar ybar0=r(b) mean Lgpc if year>
Then, we have the subsequent commands:
scalar ybar1=r(b) gen cons=
matrix b0=e(b) matrix var0=e(v) reg Lgpc Lincome Lgasp Lpnc Lpuc Lppt Lpd Lpn Lps t if year>
Finally, we have the following results:
matrix b1=e(b) matrix var1=e(v) matrix dy_dx=b1x1'-b1x0' matrix dy_db=b1x0'-b0x0' matrix vtotal=var0+var matrix vdb=x0vtotalx0' scalar dy_dxs=dy_dx[1,1] scalar dy_dbs=dy_db[1,1] scalar vdbs=vdb[1,1] display "dybar=" ybar1-ybar dybar=. display "dy_dx=" dy_dxs dy_dx=. display "dy_db=" dy_dbs dy_db=. display "the lower limit is" dy_dbs-1.96sqrt(vdbs)" and the upper limit is " dy_dbs+1.96sqrt(vdbs) the lower limit isunknown function () r(133); display "the lower limit is" dy_dbs-1.96sqrt(vdbs) " and the upper limit is " dy_dbs+1.96sqrt(vdbs)
In addition, the lower limit is 0.18484676, and another hand, the upper limit is 0.3604207.
Final results: DYBAR 0. DY_DX 0. DY_DB 0. LOWER 0. UPPER 0.
References
GREENE, W. Econometric Analysis. Pearson: New York, 2018.
STATA. Statistics Data Analysis. College Station , Texas, 2017.