Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • sub analysis in Survival Analysis

    Dear Statalist members,

    I am doing survival analysis (time to event). In my analysis there are treatment group has received one of the 10 different medications and control group has no medications. I am keen to check survival analysis for 2 of the specific medications. When I stset the data with (for example, stset time if trt==drugA) my control group is discarded. Is there any way to overcome this. I want to keep all of the control group and with the treatment group , keep only subjects receiving either drug A or drug B).

    I very much appreciate advice.

    With warm regards,
    Sateesh

  • #2
    something like,
    Code:
    stset time if trt=="drugA" | trt=="drugB" | trt=="no medications"
    where trt=="no medications" identifies the control group

    Comment


    • #3
      Thanks very much

      Comment

      Working...
      X