Hello,
I want to create a graphic with multiple graphs for each sub catvar and also a graph that is just the average over all sub catvars. However for the overall graph stata gives me a nonsensical graph. It looks like there are 2 y-values for each x-value.
collapse (mean) wage, by(year sex region) bysort year region (sex): gen wage_ratio= wage[1]/wage[2] twoway line wage_ratio year if region==1 /// || line wage_ratio year if region==2 /// || line wage_ratio year /// I also tried adding "if region==1 | region==2" to the last line.
Related Posts with Graphic with graphs for sub catvars and overall graph
Splitting a mata functin into partsHi, I am very much a novice using mata, and i am trying to write a small piece of mata to change ro…
How to convert alphanumeric values into numbersHello, I have an alphanumeric string variable that have different characters for each observation. …
Item Response Theory - calculating individual theta scoresI'm looking for some advice on calculating individual theta scores for 900 people who've responded t…
Coding my continous variable to natural logarithmDear All, I am working on research to identify the influential factors of growth ambitions. I have …
3-Dimensional ReshapeHello everyone, Having some difficulties reshaping a data set. I have the following sample data set…
Subscribe to:
Post Comments (Atom)
0 Response to Graphic with graphs for sub catvars and overall graph
Post a Comment