I am using the following HBOX code and do HBOX by ID. It provides the ID number for each box but i want it to instead list a name that does not vary within ID and is unique to each ID that I have stored as a variable where it currently has the ID number. How do I do that? Here is my code:
graph hbox effect if effect < `ubound' & effect > `lbound' & D < 51, over(ID) xsize(7) ysize(8) scale(0.6) yline(`m', lpattern(solid)) saving(_authors, replace)
Basically. I want it to make the HBOX boxplot figure where instead of having ID 1-50 as the labels for each box it instead has the stored name I have.
That is, instead of
ID;
1
2
3
...
on the left of the box plot I want
Name1
Name2
Name3
Where I have the names of each ID stored in the string variable Name but i base the plot over ID.
Can someone please help?
graph hbox effect if effect < `ubound' & effect > `lbound' & D < 51, over(ID) xsize(7) ysize(8) scale(0.6) yline(`m', lpattern(solid)) saving(_authors, replace)
Basically. I want it to make the HBOX boxplot figure where instead of having ID 1-50 as the labels for each box it instead has the stored name I have.
That is, instead of
ID;
1
2
3
...
on the left of the box plot I want
Name1
Name2
Name3
Where I have the names of each ID stored in the string variable Name but i base the plot over ID.
Can someone please help?
Comment