
* FROM WIKI USING CONDITIONAL LOGISTIC REGRESSION (IN SPSS VERSION 10 MANUAL)
* SEE DAVID NICHOLS DESCRIBING THIS AT 
* http://www.listserv.uga.edu/cgi-bin/wa?A2=ind9910&L=spssx-l&P=19781
*
* GEE MAY BE BETTER FOR SPARSE DATA OR CLOGIT EXACT

GET FILE='E:\CATEGORICAL FOR ZIPPING\DEMO CATEGORICAL DATA\COND LOGISTIC DATA.SAV'.

COMPUTE DUPLIC=casecon.
EXE.

* DSM_PDS IS LIFETIME PANIC ATTACKS
* WORKS OK HERE!

COXREG
  casecon  /STATUS=duplic(1)  /STRATA=pair
  /CONTRAST (disorder)=Indicator
  /METHOD=ENTER Gender  /METHOD=ENTER disorder
  /PRINT=CI(95)
  /CRITERIA=PIN(.05) POUT(.10) ITERATE(20) .

* USING DISORDER UNADJUSTED FOR GENDER
* AGREES WITH CLOGIT EXACT ESTIMATE (IN R) USING DISORDER ON ITS OWN
* THERE IS 1 (1,2) AND 5 (2,1)S  AND LOG(1/5) =-1.609 (EQUAL TO REGRESSION
* COEFFICIENT IN OUTPUT).

COXREG
  casecon  /STATUS=duplic(1)  /STRATA=pair
  /CONTRAST (disorder)=Indicator
  /METHOD=ENTER disorder
  /PRINT=CI(95)
  /CRITERIA=PIN(.05) POUT(.10) ITERATE(20) .