Hello everyone,
I'm running a cox model with an unbalanced panel from 2015-2021 to measure the factors that influence the survival of companies, I have my time variable and the failure variable, my covariates vary over time, that is, they are GDP , agglomeration index, growth rate of economic sectors and other indexes, these variables are different each year and also vary depending on the region. When the covariates are included in the analysis, they turn out to be significant, but none of them meet the proportional hazards assumption. My question is, is there an error in my database?
The commands I use to run the model are
-snapspan idn time died, generate(time0) replace-
-stset time, id(idn) failure (died)-
-stcox- (with my covariates)
-stat phtest-
I have reviewed some works where tests of the proportional hazards assumption are not included, so I don't know if it is something necessary,
thanks in advance
Ana
Related Posts with Cox model with an unbalanced panel
Asymptomatic/Finite Sample analysisThis may not be the forum for this- perhaps Cross- Validated, but I don't have a Stata question as m…
Error when run heatplot with "function drop() not declared in class ColrSpace (120 lines skipped) " Code: ssc install heatplot Code: ssc install palettes, replace Code: ssc install colrspace, repla…
reshape errorDear Stata users, I am facing problem with -reshape wide- command. More specifically, I would like …
Fixed effect model for hospital and patietn level data (really need some help)Hi, I am exploring a dataset of patient data from 20 hospitals for 3 years. Among which 9 hospitals…
Removing Leading and Trailing SpacesConsider the following full worked example Code: import delimited "http://qed.econ.queensu.ca/jae/d…
Subscribe to:
Post Comments (Atom)
0 Response to Cox model with an unbalanced panel
Post a Comment