Hello,
I want to plot some estimated betas from an foregoing regression. I have 140 betas of 140 individuals. I want to order the betas by size and plot them. So far I use
graph bar (asis) betas, over(newid, sort(betas))
were betas is a variable containing the estimated beta for each inidividuum and newid is a unique identifiert going from 1-140.
I attached the graph, one bar stands for one estimated beta of one person.
Now I would like to color the bars depending on the gender of the individuals e.g blue for women and red for men. I could use the variable femaleD which is equal to one if an individual is a woman and zero otherwise.
Does anyone has a suggestion how to do this?
Thanks a lot in advance.
Felix Schmidt
I want to plot some estimated betas from an foregoing regression. I have 140 betas of 140 individuals. I want to order the betas by size and plot them. So far I use
graph bar (asis) betas, over(newid, sort(betas))
were betas is a variable containing the estimated beta for each inidividuum and newid is a unique identifiert going from 1-140.
I attached the graph, one bar stands for one estimated beta of one person.
Now I would like to color the bars depending on the gender of the individuals e.g blue for women and red for men. I could use the variable femaleD which is equal to one if an individual is a woman and zero otherwise.
Does anyone has a suggestion how to do this?
Thanks a lot in advance.
Felix Schmidt
Comment