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
Exponentially Weighted Moving Average (EWMA) Control ChartHi Statalisters I was wondering if anyone can share example codes for graphing Exponentially Weight…
Creating variablesDear Stata forum members, I would like some help with the creation of certain variables. The varia…
Reference class in latent class logitHello Statalist. I'm using the command lclogit2 (written by Hong Il Yoo) to fit a model with the re…
Multiple regression analysis bachelor thesis HelpDear Stata experts, I currently am writing my bachelor thesis regarding the topic International Joi…
Non proportionality of Cox model, using piece-wise constant exponential model insteadHi, I am studying union formation and dissolution of first and second-generation immigrants in the h…
Subscribe to:
Post Comments (Atom)
0 Response to Cox model with an unbalanced panel
Post a Comment