Hi all,
I am trying to calculate adjusted risk ratio using the adjrr command. For 2 level variables, it is straightforward. However, I am trying to weight (establish a baseline) for each of the multilevel variables in my data set. Thanks for the help in advance
Here is my code thus far
With a copy of my data
I am trying to calculate adjusted risk ratio using the adjrr command. For 2 level variables, it is straightforward. However, I am trying to weight (establish a baseline) for each of the multilevel variables in my data set. Thanks for the help in advance
Here is my code thus far
Code:
tab age_cat primary_reop, chi exact nolog row binreg primary_reop b1.age_cat, rr logit primary_reop b1.age_cat adjrr age_cat, at(age_cat==1)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(primary_reop age_cat) 0 1 0 2 0 1 0 1 0 2 0 1 0 2 0 3 0 2 0 1 0 3 0 1 0 2 1 1 0 1 0 1 1 2 0 1 1 1 0 2 0 1 0 3 1 1 0 1 1 2 0 1 0 1 1 1 0 1 0 2 0 2 0 2 0 2 1 2 0 1 0 1 0 3 1 1 0 3 1 2 0 2 0 1 0 1 0 2 0 1 0 2 0 1 0 1 0 1 0 2 0 1 0 1 1 1 1 1 0 1 1 1 0 1 0 1 0 2 0 2 1 2 0 1 0 1 0 2 0 1 0 2 0 1 0 1 0 1 0 1 0 2 0 2 0 1 0 3 0 2 1 3 0 3 1 2 1 1 0 2 0 1 0 2 0 1 0 2 0 2 0 2 0 1 0 1 0 1 1 1 0 2 0 1 0 1 0 1 0 1 0 2 1 1 0 2 0 2 1 1 end
Comment