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

st: adding observations


From   David K Evans <[email protected]>
To   [email protected]
Subject   st: adding observations
Date   Thu, 9 Dec 2004 14:34:13 -0500 (EST)

I have a dataset of campaign contributions, with observations at the level
of each individual contribution. I want to generate a dataset in which the
unit of observation is the donor-year. But if I use 'egen' to generate
donor-year means, those donors who didn't give in a particular year will
not appear at all. I want them to appear as zeros. Is there any way to add
these observations?

Thanks so much,
Dave

------------------------------------------------------------------------

PhD student, Harvard Economics Department
Phone: (O) 617-495-5634, (H) 617 - 493 - 1536
Address: Currier Mail Center #554, Cambridge, MA 02138

------------------------------------------------------------------------
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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