|
From | "Nick Cox" <n.j.cox@durham.ac.uk> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | RE: Re: st: RE: reshaping a cross table on several indicators |
Date | Fri, 19 Jan 2007 16:05:02 -0000 |
Also egen, not gen Nick n.j.cox@durham.ac.uk n j cox > A typo of mine has misled you. Sorry about that. > For your data my recipe is > > bys cat year: egen vara = sum(w) > by cat year: egen varb = mean(wcrvd) > by cat year: egen varc = mean(wgnrl) > gen tag=tag(cat year) > list cat year var? if tag * * 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–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |