SPSS Statistics

 View Only
  • 1.  Cox Regression Syntax

    Posted Fri August 25, 2023 05:05 AM

    Hello,
    my drop down menu for Cox Regression doesn't work anymore (I can only enter time OR status OR covariates, after entering one thing, the arrow signs turn grey and I can't do anything anymore) but using Syntax, the commands work.
    Unfortunately, I don't know the syntax for entering covariates in different blocks.

    Can anybody tell me the syntax which is needed?

    Thanks a lot!



    ------------------------------
    Viola E
    ------------------------------


  • 2.  RE: Cox Regression Syntax

    Posted Mon August 28, 2023 10:12 AM

    Hello Viola,

    That is strange that you cannot get the Cox Regression UI to work. I am using version 29.0.1 on MacOS and it works well.

    Some questions:

    1. Are you using Windows or MacOS?
    2. what version of SPSS Statistics are you using?

    The best way to learn the correct syntax for a command is via the Command Syntax Reference, which is a guide file you can access from the Help menu in Statistics.

    Here's an example Cox Regression using multiple covariates with the Employee Data sample data file:

    COXREG bdate
      /STATUS=educ(7)
      /METHOD=ENTER salbegin 
      /METHOD=FSTEP(WALD) prevexp 
      /METHOD=FSTEP(COND) jobtime 
      /CRITERIA=PIN(.05) POUT(.10) ITERATE(20).

    HTH,



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 3.  RE: Cox Regression Syntax

    Posted Tue September 05, 2023 06:15 AM

    Hello Curtis,

    thanks for the answer and the help with the syntax.
    I'm using version 29.0.0 on Windows. It worked well at the beginning but from one moment to another, the drop down menu didn't work properly anymore.
    Do you have any idea why this happened?

    Best, Viola



    ------------------------------
    Viola E
    ------------------------------



  • 4.  RE: Cox Regression Syntax

    Posted Tue September 05, 2023 12:19 PM

    Hi Viola,

    Thanks for the information. I tried this on version 29.0.0 for Windows and I could not reproduce the problem. I do however have an idea about what may be happening:

    The way the field choosers for Statistics dialog boxes work is that the "Move it" buttons change their direction and enablement based upon whether the source list or one of the target lists last had the input focus. If after using a "Move it" button you find that the other "Move it" buttons are disabled, it is because the current input focus has been set to the target list.

    The way to reenable the other buttons and change their direction is to place focus back onto the source variable list. That can be accomplished either by clicking on the source list with the mouse or by using the tab or shift+tab keys to use the keyboard to navigate back to the source variable list.

    Statistics works this way so that a single button can be used for each target list, and so users can easily move variables in to and out of variable target lists.

    Best,



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------