Hi!
I have performed cox-regression on a data set with both continuous and categorical variables. In the cox-regr. command I specified categorical values by adding i. before variable. Shoenfeld residuals were saved by following command stcox i.spiders age i.sex i.ascites albumin bilirubi i.edema1 choleste i.stage,schoenfeld(sc*) scaledsch(ssc*). When assessing proportionality I used estat phtest, detail. All these went well. When I attempted to make plots with Schoenfeld residuals, I used estat phtest, plot(var) command which went well for continuous variables such as age, albumin etc., but when assessing categorical variables such as sex estat phtest, plot(sex), I got error response that this variable is not found in model. Could you give an advice what is wrong?
Related Posts with Cox-regression:proportional hazard test by Schoenfeld residuals
Tab the frequency of multiple variables with the same labelI'm sorry if this has been asked a thousand times, but I haven't found the answer by searching the f…
Adjusting for time-varying covariates in linear mixed modelsHi, I have a question about adjusting for time-varying covariates using multilevel linear mixed mod…
Create a new variable with If -statementsHello Statalists, I ’am quite a beginner in Stata and statistics in general. I have a large data sa…
Problem with sgmediation after using SEMHello everyone, I used SEM to construct 5 factors using 29 variables. After, I did some regressions…
Overlapping holding period momentum strategyI'm working on a project where I want to investigate a momentum strategy of stock returns. I'm formi…
Subscribe to:
Post Comments (Atom)
0 Response to Cox-regression:proportional hazard test by Schoenfeld residuals
Post a Comment