Generating a competing risk curve with more than 2 groups

Hi, fairly green R user here and new to the forum.

I have managed to calculate hazard ratios for my variable with three groups (0, 1, 2) using the cmprsk package.

What I'm missing now is the CIF-curve. I can not find a proper tutorial or info for my particular situation and am not fluent enough to figure it out on my own. I have found this link to be helpful to begin with, but it ends just when things begin to be interesting for me.

What I'm dealing with here is fairly simple:
Treatment groups - 0,1,2
Event groups - 0,1,2 (where 0 is no event, 1 event of interest, 2 competing event)
Time - continuous
Possibly a covariate with also multiple groups.

Any ideas what packages to start with and how to deal with the functions in hand?
Thanks in advance

Welcome to the forum.
I think we need to see your code and some sample data.

FAQ

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.