Dear Mr, Marcantonio,
I am not certain if I successfully responded to the recommendation of your colleague yesterday. if not, please allow me to restate.
In attempting to apply the suggested programming language to the Syntax generated from the Cox w/ Time-Dep Covariate graphical user interface ("PASTE"), the Cox w/ Time-Dep Covariate function failed completely. I am no longer able to produce meaningful output even if adding only a single time-dependent variable into
any model, that is, differing Times and Status. Moreover, there are missing values declared that are not, in fact, actually missing. What I see now is this:
Cox Regression
WarningsThere is a variable named T_, but there are no time-dependent covariates.
Case Processing Summary
N Percent
Cases available in analysis Eventa 45 20.0%
Censored 62 27.6%
Total 107 47.6%
Cases dropped Cases with missing values 118 52.4%Cases with negative time 0 0.0%
Censored cases before the earliest event in a stratum 0 0.0%
Total 118 52.4%
Total 225 100.0%
a Dependent Variable: Interval_m_ITx_to_Graft_Failure_or_End_Study
Initially, I misunderstood your suggestion and tried to produce the necessary Syntax from scratch in a new Syntax Editor window, and perhaps, that had something to do with the failure. However, before the failure and using the user interface, the resulting Syntax looked different from your preview in that I observed no braces ({ }) within the COMPUTE T_COV command. Based on error messages, I assumed that my specific Covariate Expressions should be preceded by T_ within the braces, but I had no success either with or without starting within-brace expressions with T_.
I am rather desperate to fix this situation, so I thank you very much in advance for your time.
------------------------------
Stuart Kaufman
------------------------------
Original Message:
Sent: Mon October 24, 2022 02:04 PM
From: Rick Marcantonio
Subject: Cox regression with multiple time-dependent covariates
Hi.
From one of our statisticians:
----
The UI pastes the following from the dialog where you create that one time-dependent covariate:
TIME PROGRAM.
COMPUTE T_COV_={ }.
What's inside the brackets is what you put in the Expression for T_COV_ box in the UI. So if you have more than one to define, just add more COMPUTE commands to the TIME PROGRAM, each one with a unique name (and you don't have to name the first one T_COV_ either, but can change that to something more specific for your situation).
The TIME PROGRAM section is followed by the COXREG command that uses the time-dependent covariate(s) as predictors in the model.
----
------------------------------
Rick Marcantonio
Quality Assurance
IBM
Original Message:
Sent: Mon October 24, 2022 09:56 AM
From: Stuart Kaufman
Subject: Cox regression with multiple time-dependent covariates
Despite inexperience with SPSS, I find entry of a single time-varying covariate alone or in combination with one or more time-independent covariates into a Cox regression model to be simple and straightforward. Can you describe how to enter multiple time-varying covariates into a Cox model, which I understand to require use of Command Syntax; that is, can you describe which commands and where to insert them?
Thank you in advance.
------------------------------
Stuart Kaufman
------------------------------
#SPSSStatistics