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
Census division by year fixed effectsHello stata community, My current research needs to account for time varying shocks , and therefore…
Principal component analysisHi dears, I have a question. I would like to apply the PCA for constructing a single index. I have v…
Date-variable: Extracting day-of-month as numericHello everyone, I would highly appreciate your help with the following: I have a date-variable in …
What are the functional form of the fixed-effects regression, random-effects regression and pooled regression?Good morning to the community Stata. I wrote that the functional form of the fixed-effects regressi…
outreg2 for all dataframesHi, I am using Stata 17 and would help in producing tables in all my dataframes. Below is an exampl…
Subscribe to:
Post Comments (Atom)
0 Response to How to add two variables with one conditions each using graph bar
Post a Comment