Use code: AXEUSCESTUDENT2024 for 10% off your next purchase!

Forum

Use code: AXEUSCE-AI for 10% off your next purchase!

How to make forest ...
 
Notifications
Clear all

How to make forest plots in STATA

1 Posts
1 Users
0 Reactions
208 Views
(@mdyasarsattar)
Posts: 5
Active Member
Topic starter
 

Do file used for STATA forest plots:

 

 

clear
***working directory
cd "/Users/yasarsattar/Desktop/fp"

** select data sheet
import excel "/Users/yasarsattar/Desktop/fp/Forest Plot.xlsx", sheet("Sheet1") firstrow case(lower)

** install modul metan
ssc install metan

*OR FP- nonmeta coding:
gen lnlci= ln(lci)
gen lnuci= ln(uci)
gen lnor = ln(aor)
metan lnor lnlci lnuci, label(namevar = outcome) eform effect(OR) xlab(.05, 1, 10) texts(150) astext(30) favours(No Chagas CM # Worsens in Chagas CM) nooverall nowt rcols(pvalue)

 
Posted : 26/04/2024 11:37 pm
Topic Tags
Share:
Need Help?