Hello everyone.
I am working on cure models using stpm2.
I want to estimate the cure point and wrote the program as below, but the figure is something odd...
Does my program have some mistake? Does someone have any good idea?
or Is this model inappropriate for this annalysis?
-------------------------------------------------------------------------------------------------------
use http://pauldickman.com/data/colon.dta, clear
stset surv_mm, failure(status=1 2) scale(12) exit(time 10*12)
gen _age = min(int(age + _t),99)
gen _year = int(yydx + mmdx/12 + _t)
merge m:1 _year sex _age using http://pauldickman.com/data/popmort
keep if _merge==3
stpm2 if stage==1, scale(hazard) df(5) bhazard(rate) cure
predict rs_all, survival
predict cure1, cure
predict uncure, survival uncured
twoway line rs_all cure1 uncure surv_mm, sort
Array
Related Posts with Figure of cure model (stpm2)
How to graph bootstrap distribution regarding indirect effect estimates and effect ratio?To whom that has the expertise on the above questions, I used bootstrap methods to test the signifi…
Using Synthetic Control Weights in a Difference in Differences model (SDID)Hi everyone, I am currently conducting a synthetic control (sc) model and would now like to use my …
Check if variable is constant within IDHi everyone, I have a dataset that that looks like this: state year legis_control NH 2009 Dem …
Address a negative probability value when using the margins commandHi I ran a gologit2 model and then computed predicted probabilities for the ordinal dependent variab…
Non-Linear Mixed Effects ModelHello all, I am attempting to fit a mixed effects model to some longitudinal secondary data. The va…
Subscribe to:
Post Comments (Atom)
0 Response to Figure of cure model (stpm2)
Post a Comment