Announcement

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

  • Firthlogit - How to report RR?

    I am running a -firthlogit (suggested here in Forum by Clyde) - to calculate if the Intervention influence the prevalence of the medication use (Randomized study, 185 persons in intervention group, 183 persons in the control group; intervention variable is r_treat), PersonWithn_Tricycl3==1 if person gets the tricyclic andtidepressants at 90 day followup, PersonWithn_Tricycl1==1 if person gets the tricyclic andtidepressants at baseline, same for many other medications.
    I got question to adjust for the baseline medication.
    As an example for the tricyclic --baseline tricyclic antidepressants a perfect predictor of the tricyclic outcome.


    Code:
    firthlogit PersonWithn_Tricycl3 ib1.r_treat ib2.PersonWithn_Tricycl1
    firthlogit, or
    I was asked to report Risk Ratios istedet for Odds Ratios, but cannot get it working with -firthlogit-.


    All the suggestions how to get displayed RR with
    Code:
    firthlogit
    are highly appreciated.


    Example of dataset below

    ----------------------- copy starting from the next line -----------------------
    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input int id byte r_treat float(PersonWithn_Tricycl1 PersonWithn_Tricycl3)
      9 1 0 0
     11 2 0 0
     12 1 0 0
     17 1 0 0
     20 2 0 0
     39 2 0 0
     53 2 0 0
     54 2 0 0
     55 1 0 0
     56 2 0 0
     57 1 0 0
     59 1 0 0
     65 2 0 0
     68 2 0 0
     69 2 0 0
     74 1 0 0
     79 1 0 0
     82 1 0 0
     93 2 0 0
     97 1 0 0
    101 1 0 0
    104 2 0 0
    105 2 0 0
    117 2 0 0
    121 2 0 0
    122 1 0 0
    136 1 0 0
    146 1 0 0
    147 2 0 0
    153 1 0 0
    154 2 0 0
    165 1 0 0
    166 1 0 0
    167 1 0 0
    170 1 0 0
    172 1 0 0
    173 1 0 0
    177 2 0 0
    178 2 0 1
    192 2 0 0
    193 2 0 0
    197 1 0 0
    199 1 0 0
    203 2 0 0
    209 2 0 0
    213 1 0 0
    221 2 0 1
    224 1 0 0
    229 2 0 0
    231 1 0 0
    233 1 0 0
    234 1 1 1
    239 1 0 0
    243 1 0 0
    245 2 0 0
    247 1 0 0
    249 2 0 0
    270 2 0 0
    282 1 0 0
    287 1 0 0
    288 2 0 0
    293 1 0 0
    306 2 0 0
    310 2 1 1
    317 1 0 0
    332 2 0 0
    335 1 0 0
    340 2 0 0
    341 2 0 0
    352 2 0 0
    353 1 0 0
    354 1 0 0
    358 2 0 0
    364 2 0 0
    366 2 0 0
    367 2 0 0
    373 1 0 0
    375 1 0 0
    377 1 0 0
    380 2 1 1
    381 2 0 0
    390 1 0 0
    397 2 0 0
    400 2 0 0
    401 1 0 0
    402 2 1 1
    408 2 0 0
    411 1 0 0
    412 1 0 0
    416 2 0 0
    418 2 0 0
    421 1 0 0
    428 2 0 0
    429 1 0 0
    433 2 0 0
    435 1 0 0
    440 1 0 0
    442 2 0 0
    446 1 0 0
    449 1 0 0
    end
    Thanks alot for your advices.
    Kindly, Natallia
Working...
X