This particular help sheet provides
how to obtain data set for this exercise
introduction to logit and probit in Shazam
DOWNLOAD DATA SET
Before entering Shazam, make sure you have the data set available.
Here I consider data set HOMEOWN.DAT, the data set used in class. This
can be downloaded from the website
http://www.econ.ucdavis.edu/faculty/cameron/shazam.html
Enter the Shazam directory. Click on the Homeownership data. Download to the A: drive.
SHAZAM LOGIT
Give the following Shazam commands.
FILE SCREEN A:\HOMEOWN.OUT
FILE 11 A:\HOMEOWN.DAT
READ(11) FAMILY HOMEOWN INCOME
SET PAUSE
PRINT FAMILY HOMEOWN INCOME
STAT HOMEOWN INCOME
OLS HOMEOWN INCOME
LOGIT HOMEOWN INCOME
PROBIT HOMEOWN INCOME
The OLS command produces OLS estimates including
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The LOGIT command produces logit estimates including
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|