Dear Statalists,
I should add the risk strata (number of patients at risk) under risk axis following this command:
stset fu_morte_y, fail(r_death==2) id(id)
stcompet CumInc = ci SError = se, compet1(1)
stcompet CumInc_AA=ci if(diabetes==0), compet1(1)
stcompet CumInc_AB=ci if(diabetes==1), compet1(1)
gen ESRD_cons=CumInc_AA if r_death==2
gen ESRD_dm=CumInc_AB if r_death==2
sort fu_morte_y
twoway (scatter ESRD_cons fu_morte_y, connect(J))(scatter ESRD_dm fu_morte_y, connect(J)) if fu_morte_y<10
This is a code computing the cumulative incidence of ESKD with the competing risk of death between two populations (diabetes and not). r_death means 1=death and 2=eskd.
Is it possible to add the numer at risk under the x-axis?
Thank you very much
Related Posts with Risk strata under x axis STCOMPET
Differences between "icc" and "estat icc" estimates?Dear stata users I am trying to estimate the intra-class correlation of measures performed by sever…
Assert – why is false returned for values that appear equal after matrix conversion? Code: version 15 set obs 3 local a = 3.1415927 matrix A = (1\2\3.1415927) matrix B = A[3,1] sv…
Analyzing the dataHi. I have a dataset with neary one million individuals and their hospitalizations (> 1 hospitali…
r value - Individual variance for each independent variable in linear regressionHi there, Would you mind sharing your thoughts on how to calculate/obtain individual variance accoun…
What is the relationship between sample size and Type I error?Dear clever statistics people, I am writing a paper using a RD-design on three different data sets.…
Subscribe to:
Post Comments (Atom)
0 Response to Risk strata under x axis STCOMPET
Post a Comment