Chapter 7 Nonlinear, Semiparametric, and Nonparametric Regression Models 55
——–+——————————————————————–
| Standard Prob. 95% Confidence
UserFunc| Coefficient Error z |z|>Z* Interval
——–+——————————————————————–
C1| 11.4447*** .08192 139.71 .0000 11.2842 11.6053
—————————————————————————–
Cov.[b^]| C1 C2 C3 C4
——–+——————————————————–
C2| .216691E-04 .749667E-06 .315138E-05 -.00364865
5. Using the gasoline market data in Appendix Table F2.2, use the partially linear regression method in
Section 16.3.3 to fit an equation of the form
ln(G/Pop) =
1ln(Income) +
2lnPnew cars +
3lnPused cars + g(lnPgasoline) +
.
crea;gp=lg;ip=ly;ncp=lpnc;upp=lpuc;pgp=lpg$
sort;lhs=pgp;rhs=gp,ip,ncp,upp$
crea;dgp=.809*gp – .5*gp[-1] – .309*gp[-2]$
crea;dip=.809*ip – .5*ip[-1] – .309*ip[-2]$
crea;dnc=.809*ncp -.5*ncp[-1]-.309*ncp[-2]$
crea;duc=.809*upp -.5*upp[-1]-.309*upp[-2]$
samp;3-36$
regr;lhs=dgp;rhs=dip,dnc,duc;res=e$
+———————————————————————–+
| Ordinary least squares regression Weighting variable = none |
| Dep. var. = DGP Mean= .9708646870E-02, S.D.= .4738748109E-01 |
| Model size: Observations = 34, Parameters = 3, Deg.Fr.= 31 |
| Residuals: Sum of squares= .1485994289E-01, Std.Dev.= .02189 |
+———————————————————————–+
+———+————–+—————-+——–+———+———-+
|Variable | Coefficient | Standard Error |t-ratio |P[|T|>t] | Mean of X|
+———+————–+—————-+——–+———+———-+
+—————————————————+
|Number of observations in current sample = 34 |