Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: matched data

From   "Nick Cox" <>
To   <>
Subject   st: RE: matched data
Date   Mon, 24 Jun 2002 17:26:57 +0100

Theodoropoulos, N.

> I have a matched employer-employee dataset. Each firm is 
> recognised by a unique identifier, and in each firm I have up to 
> 25 employees. From the existing data I want to generate some new 
> variables which capture only firms that employ a positive 
> proportion of old and/or young workers. In other words I want to 
> generate variables by selecting only the firms with some sampled 
> old and/or young employees.
> Also, I have the variables that capture the proportion of old and 
> young workers. 
> Is there a quick way of doing this instead of going through the 
> firms one by one.

Check out e.g. -egen, any()- 


*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index