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
Question on xtgee syntaxDear Statlist, I am trying to determine whether there is a difference in the success proportion bet…
Hourly wage using Heckman correctionHey, i ran regression for estimating hourly wages: Y= β1x β2x β3x .... Y= monthly wage / hours wor…
Form monthly calendar portfoliosHello Stata forum: I want to make an event study for share repurchase announcements by using the ca…
global temporary dataset for interactive use in multiple DO fileI intend to use the `temp' file in multiple DO files, however, the file vanishes as the first do fil…
2-stage models for panel dataDear All, I am estimating the willingness to pay for insurance over 5 years, whereas the insurance …
Subscribe to:
Post Comments (Atom)
0 Response to Cox-regression:proportional hazard test by Schoenfeld residuals
Post a Comment