UNIVERSITY OF CALIFORNIA, LOS ANGELES
Department of Policy Studies

Policy Studies 208 (Cameron) - Policy Research and Analysis

SHAZAM code [sur97.sha]


If you are downloading this SHAZAM code for use on your own computer, select "File", then "Save As...", and save on your own diskette (a:) or your own hard drive (c:\) using the same filename p208sh11.sha.

IMPORTANT: you must then use an editor (like TED) to delete all of the HTML code from the top and the bottom of the file, leaving only the SHAZAM code. The line which reads "* SHAZAM code (p208sh11.sha) downloaded from UCLA Policy Studies 208 (CAMERON) WebSite" should be the first line of your edited program file. Save the edited program as sur97.sha



* SHAZAM code downloaded from UCLA Policy Studies 208 (CAMERON) WebSite: 
* HTML file called p208sh11.htm, and should have 
*  been downloaded as sur97.sha

file 6 sur97.out
sample 1 41 
read(sur97.dat) midterm hrsleep othermid cram hmwk hrswork lecmiss &
  mathecon cheat brkfst econ40 statcl perprob kids athlet drug female &
  commute gpa english online labs studygr bookper shazper econ1 &
  units hselse laststat cameron yrcoll oldmid

* KEY to variable acronyms:
*   MISSING DATA has been coded as -9

* MIDTERM= midterm score out of 150
* hrsleep= hours of sleep the night before the exam
* othermid= number of other midterms during same week
* cram=hours of studying in the 24 hours prior to the exam
* hmwk=sum of homework scores
* hrswork=hours of work per week, on average
* lecmiss=number of lectures missed
* mathecon=1 if MathEcon major, =0 otherwise
* cheat=1 if cheated, =0 otherwise
* brkfst=1 if had breakfast that morning, =0 if not
* econ40=econ 40 (or equivalent) 4-point letter grade
* statcl= # of stat classes taken, other than this one
* perprob=1 if had personal problems interfering with studying; =0 if not
* kids=1 if have children; =0 if not
* athlet=number of hours per week spent on athletics
* drug = number of "drug/alcohol" events during quarter
* female=1 if female; =0 otherwise
* commute= number of hours per week spent commuting
* gpa = prior gpa (4.0 scale)
* english=1 if English is first language; =0 otherwise
* online= number of online quizzes taken
* labs=number of labs attended
* studygr=number of people in study group
* bookper=percent of assigned book chapters read
* shazper=percent of assigned shazam sections read
* econ1=years since Econ 1 (or equivalent)
* units=total number of units this quarter
* hselse=1 if took highschool in another country; =0 if not
* laststat= years since last stat class
* cameron=1 if took a prior class from same professor; =0 if not
* yrcoll=year in college
* oldmid= number of old midterms tried

stat 
* be sure not to treat missing data as real:
skipif(midterm.eq.-9)
skipif(hmwk.eq.-9)
skipif(econ40.eq.-9)
skipif(statcl.eq.-9)
skipif(drug.eq.-9)
skipif(gpa.eq.-9)
skipif(econ1.eq.-9)
skipif(hselse.eq.-9)

* TRY SOME REGRESSIONS.  Here's just one example.

ols midterm gpa econ40 lecmiss online labs &
  econ1 oldmid / auxrsqr
stop



COURSE OUTLINE LECTURE OUTLINES PROBLEM SETS PROBLEM SOLUTIONS COMPUTER LABS
SHAZAM EXAMPLES DATA SETS ONLINE QUIZZES GRAPHICS HANDOUTS

Updated: January 15, 1998
Prepared by: Trudy Ann Cameron