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
Match observations in a panel datasetI have a panel survey data of each individual's price forecast. In each month, a subset of first-tim…
Linear Models With Many Levels of Fixed Effects( REGHDFE)Dear Stata Members I ran the following panel regression with firm fixed effects(in my case, xtset i…
Row MeanDear all, I am using Stata 16, on mac. I have taken a snapshot on the panel dataset I am working wi…
double integral in MataHey all, I am working on to implement a random effect zip model in Mata. The model includes two ran…
putexcel -- italicize a single word in a line of text, not the entire cellHello, I am using putexcel to add a line of text to a table cell. I would like to italicize a singl…
Subscribe to:
Post Comments (Atom)
0 Response to Graphic with graphs for sub catvars and overall graph
Post a Comment