UNIVERSITY OF CALIFORNIA, LOS ANGELES
Department of Economics
Economics 143 (Cameron) - Applied Regression
Analysis
SHAZAM code [smokes.sha]
* SHAZAM code downloaded from UCLA Econ 143 (CAMERON) WebSite:
* HTML file called e143sh28.htm, and should have
* been downloaded as smokes.sha
sample 1 30
read(smokes.dat) age inc price packs
* Descriptive Statistics
stat / pcor
* Regression 1
ols inc packs / anova
* Regression 2
ols packs inc / anova
* Regression 3
ols packs inc price / anova
* Plot 1
plot inc age
plot inc age / gnu
* Plot 2
plot price age
plot price age / gnu
* Regression 4
ols packs age inc price / anova auxrsqr
confid age inc
confid age inc / gnu lineonly
confid inc price / gnu lineonly
test
test inc=0
test price=0
end
test
test age=0
test inc=0
end
test age=1
test inc-10*age=0
test 10*inc=age
Updated: 10:58 PM 11/12/98; Prepared by: Trudy Ann Cameron; Site Index