From | Jean-Benoit Hardouin <[email protected]> |
To | [email protected] |
Subject | Re: Re: st: create a contingency table |
Date | Wed, 05 Nov 2003 15:24:14 +0100 |
_EITHER_ the same answer bysort Item? : gen Count = _N by Item? : gen tag = _n == 1 list Item? Count if tag If you want just to keep the table as new dataset: keep if tag keep Item? Count _OR_ contract Item? See [R] contract. I guess I would have suggested that earlier if I had sensed interest in dataset as result, rather than table as result. Nick [email protected] * * 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/
-- Jean-Benoit Hardouin 37, rue Arrachart 41000 Blois tél : 02 54 45 39 75 email : [email protected] http://www.jb-hardouin.fr.st http://www.anaqol.fr.st * * 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 |