sampling and stats by classification
Posted: Mon Dec 03, 2012 10:00 am
Hi everyone,
I have a problem with settiung up a sample.
Let's assume I have a dated panelstructure with data for 7 years for 200 companies (revenue), which are located in 10 different countries. So there are about (not exactly) 20 companies located in each of the 10 countries. Now I am trying to look at statistics sorted by classification, i.e. sorted by country. How that works, I know. But, I would like to sample my datastructure in a way, that only the top five companies for each country are to be included in the statistics sorted by classification.
I seem not to be able to find the solution for this probably very simple problem. I'll be very grateful for help or advice. Thanks a lot in advance.
I have a problem with settiung up a sample.
Let's assume I have a dated panelstructure with data for 7 years for 200 companies (revenue), which are located in 10 different countries. So there are about (not exactly) 20 companies located in each of the 10 countries. Now I am trying to look at statistics sorted by classification, i.e. sorted by country. How that works, I know. But, I would like to sample my datastructure in a way, that only the top five companies for each country are to be included in the statistics sorted by classification.
I seem not to be able to find the solution for this probably very simple problem. I'll be very grateful for help or advice. Thanks a lot in advance.