Hello,
I have a series of forest plots, which I need to edit further.
An extract of the code for one of the graphs (thanks to David Fisher) is:
----------
use dataset_children.dta, clear
label variable morphology_group "Morphology"
gsort +midYear +ageH
admetan PE LCI UCI if morphology_group>=31 & morphology_group<=32, study(author) ///
sortby(midYear) by(morphology_group) ///
rcols(country estimator_new midYear age_r) ///
nohet nooverall nosubgroup saving(mydata, replace)
use mydata, clear
replace _LABELS = `"{bf:"' + _LABELS + `"}"' if _USE==0
label variable _ES "%"
label variable _LCI "LCI"
label variable _UCI "UCI"
format %-20s _LABELS
format _ES %2.0f
forestplot, lcols(country) rcols(_ES midYear estimator_new age_r) ///
nostats nowt nobox nulloff leftjustify astext(70) xlabel(0 30 60 90) spacing(4) aspect(1) ///
pointopts(msymbol(t)msize(vsmall)) ciopts(lwidth(vvthin))
----------
I would like to:
1- indent slightly study names (but not the subgroup name in bold);
2- add a grid at the 0,30,60,90 points (possibly separated within each subgroup);
3- right-align the last column on the right;
4- suppress the first column heading on the left.
With the graph editor I was able to add the grid, but I could not find the way to resolve the other points.
Thank you in advance for your reply.
Fabio
Related Posts with Admetan | Forest plot formatting
Multiple cox regression models codeDear all I have the following data set titled "EyeSurgery" The data contains 3000 IDs of patients.…
Significant AR(2) and low Hansen TestHi all, I am currently working on a dissertation to assess the state level of tax impact on marijua…
Bar graph showing percentages in each categoryI have: Y X 1 1 1 0 1 1 2 1 2 0 I want to have a bar graphs that displays two bars for each value o…
Conversion of NumbersHi everyone, I have two data sets one having numbers in Millions and the other has numbers in the t…
How to adjust linear mixed models for a factor variableDear everyone, I am using Stata 14 on Windows 10. I am using data from a longitudinal cohort study …
Subscribe to:
Post Comments (Atom)
0 Response to Admetan | Forest plot formatting
Post a Comment