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)
File not found error when looping over files in a directoryDear Statalists, I am trying to import some excel files from the same directory and merge them into…
How to generate wealth share of the top 10% in wealth distribution using weighted data?Dear Listers, I have data which provides me with information on wealth of each household. ID is the…
Standardized Cross-Section Test (BMP test)Hi everyone, I'm trying to implement the Standardized Cross-Section Test on Stata. Do you know if th…
Dummy variable that changes per group of observationsHello everyone, I have two dummy variables ger1 and ger2. Essentially what I need to do is to crea…
generating a new variable in survey dataHi, I need to generate a new variable from the dataset that contains the number of children in the f…
Subscribe to:
Post Comments (Atom)
0 Response to Figure of cure model (stpm2)
Post a Comment