syntax for testing for multiple interactions in Cox regression

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

syntax for testing for multiple interactions in Cox regression

Margaret MacDougall
Hello

  The syntax below is illustrative of what has been obtained from the SPSS paste option during my performance of a Cox regression analysis using the Forward LR procedure.

  COXREG
  oneyeartime /STATUS=oneyearstatus(1)
  /CONTRAST (factor1)=Indicator /CONTRAST (factor2)=Indicator /CONTRAST
  (factor3)=Indicator /CONTRAST (factor4)=Indicator /CONTRAST
  (factor5)=Indicator /CONTRAST (factor6)=Indicator /CONTRAST
  (factor7)=Indicator /CONTRAST (factor8)=Indicator /CONTRAST
  (factor9)=Indicator /CONTRAST (factor10)=Indicator /CONTRAST
  (factor11)=Indicator /CONTRAST (factor12)=Indicator /CONTRAST
  (factor13)=Indicator /CONTRAST (factor14)=Indicator
  /METHOD=FSTEP(LR) factor1 factor2 factor3 factor4 factor5 factor6
  factor7 factor8 factor9 factor10 factor11
  factor12 factor13 factor14
  /CRITERIA=PIN(.25) POUT(.80) ITERATE(20) .

  In this illustration, there are 14 factors. However, I wish to find an efficent way to code for all two-way interactions between all of these factors without having to write them all out explicitly. Can anyone provide me with the necessary conccise syntax which I should use to edit the above syntax so as to ensure that all two-way interactions are represented?

  Many thanks

  Best wishes

  Margaret



---------------------------------
 Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail.