Hi Guys,
i am dealing with a panel data problem.
I have a data set over 25 years and several companies.
What do I want to do now? Well i want to have the average value of a ratio over all firms for every year.
So that i can create a graph where you can look at the developement of that specific average ratio over all firms for every years.
I searched through the help files and the Internet and I did not get the answer until now.
I tried for example:
But that only gives me the mean over all firms and all periods and no yearly average over all firms.
You would help me so much!
i am dealing with a panel data problem.
I have a data set over 25 years and several companies.
What do I want to do now? Well i want to have the average value of a ratio over all firms for every year.
So that i can create a graph where you can look at the developement of that specific average ratio over all firms for every years.
I searched through the help files and the Internet and I did not get the answer until now.
I tried for example:
Code:
egen average_CAPnorm = mean(CAPnorm) if inrange(year,1989,2015)
You would help me so much!
Comment