restrict sample
Posted: Wed Apr 17, 2013 1:50 pm
Hi guys!
My problem is probably really simple to solve but i couldn't find a solution in the Evies User guide.
My workfile consists of a pannel with many different variables. One of the is a "sponsor_dummy" which consists of different numbers, depending on the sponor. (E.g. 1 = FedEx, 2 = Pepsi etc.). The numbers are between 1-20. I want to restructure my sample size, that I can analyze different sponsors more specifically.
E.g.:
sample 100 120 if sponsor_dummy = 1, 2, 3, 4, 5, 10, 14
Therefore the sample should consist of observations between 100 and 120 and should only include sponsors nr. 1, 2, 3, 4, 5, 10 and 14.
I tried it with an "OR" operator but it doesn't work. Is there any solution for this problem?
My problem is probably really simple to solve but i couldn't find a solution in the Evies User guide.
My workfile consists of a pannel with many different variables. One of the is a "sponsor_dummy" which consists of different numbers, depending on the sponor. (E.g. 1 = FedEx, 2 = Pepsi etc.). The numbers are between 1-20. I want to restructure my sample size, that I can analyze different sponsors more specifically.
E.g.:
sample 100 120 if sponsor_dummy = 1, 2, 3, 4, 5, 10, 14
Therefore the sample should consist of observations between 100 and 120 and should only include sponsors nr. 1, 2, 3, 4, 5, 10 and 14.
I tried it with an "OR" operator but it doesn't work. Is there any solution for this problem?