Dear Statalist,
I am trying to deal with the following problem:
I want to plot several regression coefficients estimated considering quite few outcomes all together. My problem is that I do have 5 sub-populations for each outcome and within each sub-population 3 groups (with 2 coefficients to plot then, as the third group is ref). Therefore, I need to plot two coefficients for each subpopulation. I am using the metan package because it allows me to plot directly the coefficient and the CIs which have already been calculated (this is my case). To my knowledge other programs (e.g. ipdmetan) require the actual dataset to work properly.
At the moment I have used the following command:
metan coef lci uci, wgt(weight) nooverall null(0) ///
nobox lcols(sub_population group) tests(190) force ///
by(outcome) xlabel (-1.5,0,1)
coef = regression coefficient
lci uci = CIs
weight = weight (equal to 1, as it is not a meta-analysis)
The code works just fine but it has two main problems:
- The outcomes labels are displayed in the right position but not in bold characters
- Using lcols I have tried to overcome the issue displaying two columns, the first one on the left is about the sub-population, and the second one about the groups. This is clear but not aesthetically nice as it shows something similar to this
Blood pressure
Subpopulation 1 || Group1 (Group 3 as ref)
Subpopulation 1 || Group 2 (Group 3 as ref)
Subpopulation 2 || Group 1 (Group 3 as ref)
Subpopulation 2 || Group 2 (Group 3 as ref)
while I would like something like this:
Blood pressure
Subpopulation 1 (Group 3 as ref)
Group 1
Group 2
Subpopulation 2 (Group 3 as ref)
Group 1
Group 2
Is there a way to overcome this issue using metan? To my understanding the 'by' option does only support one variable. Alternatively, can I use a different package? The package should allow me to plot coefficients which have already been calculated though.
Thanks in advance.
I am trying to deal with the following problem:
I want to plot several regression coefficients estimated considering quite few outcomes all together. My problem is that I do have 5 sub-populations for each outcome and within each sub-population 3 groups (with 2 coefficients to plot then, as the third group is ref). Therefore, I need to plot two coefficients for each subpopulation. I am using the metan package because it allows me to plot directly the coefficient and the CIs which have already been calculated (this is my case). To my knowledge other programs (e.g. ipdmetan) require the actual dataset to work properly.
At the moment I have used the following command:
metan coef lci uci, wgt(weight) nooverall null(0) ///
nobox lcols(sub_population group) tests(190) force ///
by(outcome) xlabel (-1.5,0,1)
coef = regression coefficient
lci uci = CIs
weight = weight (equal to 1, as it is not a meta-analysis)
The code works just fine but it has two main problems:
- The outcomes labels are displayed in the right position but not in bold characters
- Using lcols I have tried to overcome the issue displaying two columns, the first one on the left is about the sub-population, and the second one about the groups. This is clear but not aesthetically nice as it shows something similar to this
Blood pressure
Subpopulation 1 || Group1 (Group 3 as ref)
Subpopulation 1 || Group 2 (Group 3 as ref)
Subpopulation 2 || Group 1 (Group 3 as ref)
Subpopulation 2 || Group 2 (Group 3 as ref)
while I would like something like this:
Blood pressure
Subpopulation 1 (Group 3 as ref)
Group 1
Group 2
Subpopulation 2 (Group 3 as ref)
Group 1
Group 2
Is there a way to overcome this issue using metan? To my understanding the 'by' option does only support one variable. Alternatively, can I use a different package? The package should allow me to plot coefficients which have already been calculated though.
Thanks in advance.
Comment