I have used the following code to generate two seperate graphs. How do I combine the two graphs onto one by generating a 2nd Y-Axis as I'd like to show the relationship of the two line graphs together?
egen meanCEOTotalCompensation = mean(CEOTotalCompensation), by(Year)
egen meanShareholderReturn = mean(ShareholderReturn), by(Year)
egen tag = tag(Year)
twoway connected meanCEOTotalCompensation Year if tag, sort
twoway connected meanShareholderReturn Year if tag, sort
Any help would be greatly appreciated!
Related Posts with How to generate 2nd Y-axis for Having two connected line graphs on one graph
string variable managementGood evening to everyone, i have a variable which have a date format Code: %tdnn/dd/CCYY and I wan…
How to track how long does it take when running a "do file" or a command?Normally I have some codes taking much time and I left the machine running by itself. But it should …
Minimum value of last 3 observationsGreetings, I am very new in the world of STATA. Today I am working on a dataset within STATA where I…
regression discontinuity- panel dataHi, I am new to rd design and analysis. I am working with a household panel data with the following …
How do I interpret insignificant levels of categorical predictors in binomial logistic regression?Hello, I have a problem with interpreting the results of my binomial logistic regression. I am inve…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate 2nd Y-axis for Having two connected line graphs on one graph
Post a Comment