Hi,
I want to make a time series graph of average leverage ratios of two groups of firms over years (connected and non-connected)
I typed in the code
.
Now is my question, how do I get both lines in one image?

I tried creating two different y variables Leverageconnected and Leveragenonconnected and entered

However, now my Y variable is not shown as Leverage anymore (I would like that) and from the lines you cannot see which one belongs to which group.
Does anybody know how to deal with this?
Thanks
I want to make a time series graph of average leverage ratios of two groups of firms over years (connected and non-connected)
I typed in the code
Code:
twoway (tsline Leverage), by(, legend(on)) by(connected)
Now is my question, how do I get both lines in one image?
I tried creating two different y variables Leverageconnected and Leveragenonconnected and entered
Code:
twoway (tsrline Leveragenonconnected Leverageconnected), legend(on)
However, now my Y variable is not shown as Leverage anymore (I would like that) and from the lines you cannot see which one belongs to which group.
Does anybody know how to deal with this?
Thanks