Notifications
Clear all
STATA Programming
1
Posts
1
Users
0
Reactions
208
Views
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