I would like to graph two variables with one condition each. For example, I would like to graph wage and savings, but when wage is greater than 3 and when savings is greater than 50.
I am trying:
graph bar (percent) wages savings if savings==0
However, the graph that i get not only conditions savings by the condition, but also wages. In other words, it graphs all wages that correspond to savings greater than 0. I only want it to condition the variable savings and not wages. What can I do?
Related Posts with How to add two variables with one conditions each using graph bar
missing("repval") in "export excel options"Hi STATALIST, Could you please advise me how to use missing("repval") options in export excel opti…
Stata Journal Editors' Prize 2019 is awarded to Matias D. CattaneoThe Editors of the Stata Journal are delighted to announce the award of their 2019 prize to Matias D…
Creating and displaying graphs in a loop with dyndocHi, I try to generate standard graphs with every numeric variable in my dataset and create a nice l…
Merge daily data with quarterly dataHey! A simple question! I have two panel data sets, one is quarterly, with 3 variables ID date and …
recoding a new generated variableHi everyone, I have a dataset that contains respondents' cognitive functioning and whether they rece…
Subscribe to:
Post Comments (Atom)
0 Response to How to add two variables with one conditions each using graph bar
Post a Comment