I am trying to compare the cdf of ks-test between the first and last year of a distribution. So I have a panel data, lets say with variables years and sales. So I generated the cumulative density with the code
. I am able to generate the cdf graph for the beginning year
and the last year
. But I want to have the both graphs on one plot so I can make comparism. How do I go about it?
Code:
cumul sales , gen(cum)
Code:
line cum sales if year==2004, sort
Code:
line cum sales if year==2020, sort
Comment