Dear Statalisters,
I have a question on the command stcompet.
I am considering the entry into a marriage or a dissolution from cohabitation, as
competing risks.
In order to do that, I stset my observations by considering marriage (uniontype==2) as the failure.
Then, I use stcompet to set the dissolution (compet1(1) ) as the competing risk.
This is the code:
stset time, failure(uniontype==2) id(pidnew)
drop cif*
stcompet cif=ci , compet1(1) by(wave5) level(90)
I would like to understand how censored cases are treated.
1) Are they considered in the computation?
2) Should I specify a different competing risk (e.g. compet2(0)) for the censored individuals?
Potential code:
stset time, failure(uniontype==2) id(pidnew)
drop cif*
stcompet cif=ci , compet1(1) compet2(0) by(wave5) level(90)
I would like to understand if you have suggestion on the correct way of proceeding, since I have slightly different curves depending on whether I
am setting censored as competing risks or not.
Thank you and best,
Lydia
Related Posts with Question on stcompet
Coloring bars by group- asyvars alternative?I am trying to color bars based on the values of a categorical variable As described here: https://…
Concatenating variables as a function of other variablesDear all, I have a database comprised of an id variable (siteid), two variables that indicate the l…
How to set 3 way panel and run triple difference regression?Hi everyone, I've got a dataset which varies across time, across country and across products (trade …
A Statalist glossary This is a revision of a glossary that appeared on 1 January 2011. Striking (to me any way) that mos…
Negative margins value with penalized maximumlikelihood estimatesHello, I've tried the logit with a binary variable but I found out that the sample size is only 95. …
Subscribe to:
Post Comments (Atom)
0 Response to Question on stcompet
Post a Comment