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
svg layers disappearingHi all, I'm hoping for some advice in trouble shooting. I'm having trouble export svg files - my la…
vce(cluster) with lsdvcHello..i am stata 13 user. I want to integrate vce (cluster) with xtlsdvc Log_sales varietyofproduct…
How to hide a specific line property appears in x axis in twoway plot?Dear Stata users, I want to hide a specific line that appears in the x-axis. Here is my code for two…
Storing vec coefficientHi, I have tried to store the coefficient of the vec results. The code I used is as below. Code:…
Binary Response ModelI want to estimate the probability of authoritarian leadership failure as a function of five explana…
Subscribe to:
Post Comments (Atom)
0 Response to Graphic with graphs for sub catvars and overall graph
Post a Comment