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
Generate new variable with ifHello, Currently I have a database with the donators and theirs giving in UK. I had create 4 column…
FE- 0/1 ProblemHi there! I have a panel dataset. I’m doing a Fixed Effects Regression. I have this central variabl…
Merging when one data set has 2 entries per householdHi Statalist! I have a question about merging. I have household level data of farmers and their ag…
Use another dataset to rename variable based on conditionHello, I'm new to Stata (and new to this forum ) and I'm trying to do something probably quite basi…
Extracting words from a string variable using a local listHello, I want generate a new varibale that display the words found in the string variable that matc…
Subscribe to:
Post Comments (Atom)
0 Response to Cox-regression:proportional hazard test by Schoenfeld residuals
Post a Comment