Hello,
I am running cox regression and I want to make forest plot of my hazard ratios using metan. I have been asked to produce my forest plot in log scale. If I remove "eform" from my command, the table of HRs with confidence intervals are also in log scale which makes it not readable. Here is a part of my data and the syntax I have used so far.
clear
input float RR float lci float uci str30 Condition str30 Period index
1.24 1.07 1.43 "condition 1" "1-3 " 1
1.21 1.02 1.44 "condition 1" "4-6 " 1
0.92 0.71 1.20 "condition 1" "7-9 " 1
1.33 0.92 1.93 "condition 1" "10-12" 1
1.57 1.43 1.72 "condition 2" "1-3" 2
1.21 1.07 1.38 "condition 2" "4-6" 2
1.04 0.86 1.25 "condition 2" "7-9" 2
1.06 0.77 1.48 "condition 2" "10-12" 2
end
gen double lRR=log(RR)
gen double lRRlci=log(lci)
gen double lRRuci=log(uci)
metan lRR lRRlci lRRuci , by(Condition) eform effect(HR) xlabel(0.5,2) force nooverall stats nosubgroup nobox nowt label(namevar=Period) xtitle("Hazard ratio (95% CI)", size(small)) graphregion(fcolor(white))
I thought this was the way to produce on log scale. So what do I do wrong? I really appreciate any suggestions
Related Posts with metan Hazard Ratio log scale
gsem for latent class analysis_not concave issueHello dear Stata users, I want to run a latent class analysis with 37 variables and approximately 7…
Transforming Quarterly Variables into Annual Variables - British Labour Force SurveyHi everyone, I am working on the British Labour Force Survey (LFS) data to explore the effects of m…
Selecting a subset from a balanced panel data under certain conditionsDear all, I need some help. Well, I have a database in the structure of a balanced panel. I have to…
Loop command to generate 100 variables with mean 0 and standard deviations which increase from 1 to 100 How i can use the loop command to generate 100 variables var_1 to var_100, which are normally dist…
Question about spregdpdDear all, After we use xtabond or xtabond2, we can use "estat serial" to get AR(1) and AR(2) .But if…
Subscribe to:
Post Comments (Atom)
0 Response to metan Hazard Ratio log scale
Post a Comment