Announcement

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

  • To create a Forest plot for ORs

    • Hi there,

      I'm using Stata/SE 17 version. I want to draw a forest plot for the adjusted OR’s and group them by site. I tried a two-way plot, but it did not turn out the way I wanted. I want to show ORs for each dose and duration per site. Maybe duration down the page and dose across as columns.

      Highly appreciate your help!

      Thank you in advance!
      Thushani

      Here's my summary data!

      input str11 Site str9(Duration Dose) double(OR lcl ucl)
      "Oesophagus" "0" "0" 0 0 0
      "Oesophagus" "≤365" "<0.75" 2.770345 2.108233 3.640399
      "Oesophagus" "≤365" "0.75-1.49" 2.334474 2.027464 2.687973
      "Oesophagus" "≤365" "≥1.50" 5.80593 5.1682 6.522352
      "Oesophagus" ">365-3650" "<0.75" 3.063175 2.721591 3.44763
      "Oesophagus" ">365-3650" "0.75-1.49" 3.057715 2.684699 3.482558
      "Oesophagus" ">365-3650" "≥1.50" 4.114878 3.497305 4.841506
      "Oesophagus" ">3650" "<0.75" 3.937309 3.112235 4.981117
      "Oesophagus" ">3650" "0.75-1.49" 3.945672 3.118731 4.991878
      "Oesophagus" ">3650" "≥1.50" 5.033701 3.703695 6.841316
      "Stomach" "0" "0" 0 0 0
      "Stomach" "≤365" "<0.75" 3.336769 2.677658 4.158123
      "Stomach" "≤365" "0.75-1.49" 2.266229 1.999696 2.568287
      "Stomach" "≤365" "≥1.50" 5.742459 5.184526 6.360435
      "Stomach" ">365-3650" "<0.75" 3.458741 3.125558 3.827442
      "Stomach" ">365-3650" "0.75-1.49" 2.896002 2.565364 3.269254
      "Stomach" ">365-3650" "≥1.50" 3.596484 3.071402 4.211333
      "Stomach" ">3650" "<0.75" 3.851656 3.091769 4.798306
      "Stomach" ">3650" "0.75-1.49" 3.177686 2.501179 4.037172
      "Stomach" ">3650" "≥1.50" 3.871318 2.815129 5.323772
      "SI" "0" "0" 0 0 0
      "SI" "≤365" "<0.75" 1.649518 1.029887 2.64195
      "SI" "≤365" "0.75-1.49" 1.57192 1.253257 1.971609
      "SI" "≤365" "≥1.50" 3.410213 2.84152 4.092723
      "SI" ">365-3650" "<0.75" 2.520468 2.117087 3.000708
      "SI" ">365-3650" "0.75-1.49" 2.057124 1.646813 2.569666
      "SI" ">365-3650" "≥1.50" 3.042371 2.304169 4.017075
      "SI" ">3650" "<0.75" 3.415834 2.411394 4.838662
      "SI" ">3650" "0.75-1.49" 3.071447 2.099878 4.49254
      "SI" ">3650" "≥1.50" 3.823333 2.319778 6.301412
      "Anus" "0" "0" 0 0 0
      "Anus" "≤365" "<0.75" .8861019 .4949203 1.586471
      "Anus" "≤365" "0.75-1.49" 1.139457 .8978874 1.446019
      "Anus" "≤365" "≥1.50" .6703609 .4874491 .9219089
      "Anus" ">365-3650" "<0.75" .9504938 .7591393 1.190083
      "Anus" ">365-3650" "0.75-1.49" .9104548 .6869211 1.20673
      "Anus" ">365-3650" "≥1.50" .9176945 .5975912 1.409263
      "Anus" ">3650" "<0.75" 1.431776 .9009597 2.275331
      "Anus" ">3650" "0.75-1.49" 1.5212 .9367298 2.470349
      "Anus" ">3650" "≥1.50" .363536 .0895673 1.475521
      "Liver" "0" "0" 0 0 0
      "Liver" "≤365" "<0.75" 1.350243 1.074874 1.696157
      "Liver" "≤365" "0.75-1.49" 1.289204 1.156398 1.437262
      "Liver" "≤365" "≥1.50" 1.710026 1.54118 1.89737
      "Liver" ">365-3650" "<0.75" 1.557312 1.423685 1.703482
      "Liver" ">365-3650" "0.75-1.49" 1.700234 1.532282 1.886595
      "Liver" ">365-3650" "≥1.50" 2.202031 1.917381 2.528938
      "Liver" ">3650" "<0.75" 1.86026 1.523414 2.271587
      "Liver" ">3650" "0.75-1.49" 2.173215 1.789999 2.638473
      "Liver" ">3650" "≥1.50" 2.133711 1.610174 2.827473
      "Pancreas" "0" "0" 0 0 0
      "Pancreas" "≤365" "<0.75" 1.423325 1.147162 1.76597
      "Pancreas" "≤365" "0.75-1.49" 1.541556 1.395989 1.702303
      "Pancreas" "≤365" "≥1.50" 2.711409 2.478366 2.966366
      "Pancreas" ">365-3650" "<0.75" 1.951954 1.799526 2.117295
      "Pancreas" ">365-3650" "0.75-1.49" 1.658345 1.504646 1.827745
      "Pancreas" ">365-3650" "≥1.50" 1.82044 1.587984 2.086924
      "Pancreas" ">3650" "<0.75" 2.492803 2.110124 2.944883
      "Pancreas" ">3650" "0.75-1.49" 1.969639 1.643293 2.360796
      "Pancreas" ">3650" "≥1.50" 2.237431 1.741528 2.874545
      "Ill-defined" "0" "0" 0 0 0
      "Ill-defined" "≤365" "<0.75" 1.201671 .7941775 1.818251
      "Ill-defined" "≤365" "0.75-1.49" 1.074627 .8742607 1.320915
      "Ill-defined" "≤365" "≥1.50" 1.879096 1.561608 2.261131
      "Ill-defined" ">365-3650" "<0.75" 1.323344 1.122414 1.560244
      "Ill-defined" ">365-3650" "0.75-1.49" 1.638032 1.38041 1.943733
      "Ill-defined" ">365-3650" "≥1.50" 1.603927 1.252665 2.053685
      "Ill-defined" ">3650" "<0.75" 1.948393 1.433839 2.647602
      "Ill-defined" ">3650" "0.75-1.49" 1.860085 1.374382 2.517434
      "Ill-defined" ">3650" "≥1.50" 1.753714 1.129858 2.722033
Working...
X