I am planning to make a survival analysis (EHA, Cox model) to predict the adoption of one particular policy and I do not know whether my data set is set up appropriately to handle both Time-Varying and Time-Invariant Covariates (TVCs and TICs). If I command “Stcox [varlist]” on a dataset that has both TVCs and TICs, I am afraid that Stata will be calculating the model as if all covariates were TICs, am I right?
I have declared my data as Survival Time data, the time variable corresponds to the years 1996-2011, with “multiple record id variable” (corresponding to the 50 states) checked, and the failure variable corresponds to whether the state adopted or not the policy.
For my data set I collected annual data (1996-2011) for independent variables (IV) for each one of the 50 US American States. Most of the IVs vary annually, and I guess this makes them Time-Varying Covariates (TVCs). My DV is binary (1=state adopted the policy, 0 otherwise; only one failure is possible)
34 states did not adopt the policy in the time span and are, thus, right censored.
The strategy that I followed to create this first data set (I had no previous experience with Stata nor EHA) was to make it as similar as possible to data sets that authors who investigated the adoption of other policies shared with me.
I have declared my data as Survival Time data, the time variable corresponds to the years 1996-2011, with “multiple record id variable” (corresponding to the 50 states) checked, and the failure variable corresponds to whether the state adopted or not the policy.
For my data set I collected annual data (1996-2011) for independent variables (IV) for each one of the 50 US American States. Most of the IVs vary annually, and I guess this makes them Time-Varying Covariates (TVCs). My DV is binary (1=state adopted the policy, 0 otherwise; only one failure is possible)
34 states did not adopt the policy in the time span and are, thus, right censored.
The strategy that I followed to create this first data set (I had no previous experience with Stata nor EHA) was to make it as similar as possible to data sets that authors who investigated the adoption of other policies shared with me.
Comment