From | Dirk Nachbar <[email protected]> |
To | statalist <[email protected]> |
Subject | st: sum |
Date | 31 Oct 2005 16:22:33 Z |
I want to assign a dummy if the id (1,2,...13000) is smaller than a threshold (5000) from another dummy
gen memberh=(id<=sum(member))
But it doesn't work for some reason, it seems sum(member) is always 1, but why?
Dirk Nachbar Assistant Economist Pensim2 Department for Work and Pensions Level 4, The Adelphi 1-11 John Adam St WC2N 6HT London 020 796 28531
The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Energis in partnership with MessageLabs.
On leaving the GSi this email was certified virus-free
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |