I have data on costs of different patient groups over several months and want to use a forestplot to graph them, along with text of the cost differences and confidence intervals. I'm not doing a meta-analysis, so I don't want or need any summaries by subgroup.
I attempted to do this with the Stata package meta (Stata/SE 19.0) and can get very close, but can't figure out how to turn off the subgroup summary. I can delete those rows one-by-one with the gr_edit command, but I can't figure out how to get rid of the extra vertical space where they were sitting (see code and graph below).
I thought about using the user command coefplot by Ben Jann, but I want to graph the cost differences and CI as shown.
QUESTIONS:
Is there a way to remove that extra space between the Disease A and Disease B panels?
Or is there another approach I should try?
I attempted to do this with the Stata package meta (Stata/SE 19.0) and can get very close, but can't figure out how to turn off the subgroup summary. I can delete those rows one-by-one with the gr_edit command, but I can't figure out how to get rid of the extra vertical space where they were sitting (see code and graph below).
I thought about using the user command coefplot by Ben Jann, but I want to graph the cost differences and CI as shown.
QUESTIONS:
Is there a way to remove that extra space between the Disease A and Disease B panels?
Or is there another approach I should try?
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str13 disease byte month double(expdiff lowerci upperci pvalue) "A" 1 3468.908935546875 2975.86865234375 3961.949462890625 0 "A" 6 348.3434753417969 94.27411651611328 602.412841796875 .007204913999885321 "A" 12 -167.5044403076172 -392.356201171875 57.347320556640625 .144266739487648 "B" 1 3848.995361328125 3749.573974609375 3948.4169921875 0 "B" 6 290.9801940917969 248.13168334960938 333.8287353515625 0 "B" 12 -295.72747802734375 -332.2401428222656 -259.21484375 0 end meta set expdiff lowerci upperci, civartolerance(1e-2) studylabel(month) eslabel(Cost difference) meta forestplot _id _plot _esci if inlist(month, 1, 6, 12), subgroup(disease) columnopts(_id, title(Disease)) /// columnopts(_es, format(%6.0fc)) noomarker nowmarkers nogmarkers nullrefline(favorsright(Higher costs for disease population)) /// noohetstats noohomtest noosigtest noghetstats nogsigtests nogwhomtests nogbhomtests nooverall markeropts(msize(large) msymbol(o)) /// nonotes xlabel(-500 0 1000 2000 3000 4000 5000, labsize(small)) gr_edit .plotregion1.column5.group_items[1].Delete gr_edit .plotregion1.column5.group_items[2].Delete gr_edit .plotregion1.column5.group_items[3].Delete gr_edit .plotregion1.column6.group_items[1].Delete gr_edit .plotregion1.column6.group_items[2].Delete gr_edit .plotregion1.column6.group_items[3].Delete gr_edit .plotregion1.column7.group_items[1].Delete gr_edit .plotregion1.column7.group_items[2].Delete gr_edit .plotregion1.column7.group_items[3].Delete gr_edit .set_spositions gr_edit .set_graphwidth

Comment