Hello,
I am trying to group some variables on my graph under particular headings using coefplot.
I want to group variables "SPNEED FSM TRSTADLT YEAR SEX ETHNIC2" under the heading "Confounders"
I want to group variables "SUGARDRINK ENERDRINK CRSPEAT SWEETEAT FASTFEAT TOTCLEAN DENTFQ VOLUNTFQ PORFRUY PATOTAL LATOTAL ACTTRAV alchabit CARER BULLY2" under the heading "Exposures"
When I use this code
I get the following:

So rather than them being grouped under their respective headings, each variable is assigned the relevant heading. I would really appreciate help with this so headings are appropriately assigned. Thank you.
I am trying to group some variables on my graph under particular headings using coefplot.
I want to group variables "SPNEED FSM TRSTADLT YEAR SEX ETHNIC2" under the heading "Confounders"
I want to group variables "SUGARDRINK ENERDRINK CRSPEAT SWEETEAT FASTFEAT TOTCLEAN DENTFQ VOLUNTFQ PORFRUY PATOTAL LATOTAL ACTTRAV alchabit CARER BULLY2" under the heading "Exposures"
When I use this code
Code:
coefplot (SUGARDRINK ENERDRINK CRSPEAT SWEETEAT FASTFEAT TOTCLEAN DENTFQ VOLUNTFQ PORFRUY PATOTAL LATOTAL ACTTRAV alchabit CARER BULLY2), eform drop(_cons) xline(1) ylabel(, labsize(small)) grid(none) xtitle(Odds ratio) headings(SPNEED FSM TRSTADLT YEAR SEX ETHNIC2= "{bf: Confounders}" SUGARDRINK ENERDRINK CRSPEAT SWEETEAT FASTFEAT TOTCLEAN DENTFQ VOLUNTFQ PORFRUY PATOTAL LATOTAL ACTTRAV alchabit CARER BULLY2= "{bf: Exposures}", gap(0))
So rather than them being grouped under their respective headings, each variable is assigned the relevant heading. I would really appreciate help with this so headings are appropriately assigned. Thank you.
Comment