Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: count instances across a group of variables


From   "Fitzmaurice, A.E." <a.e.fitzmaurice@abdn.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: count instances across a group of variables
Date   Fri, 27 Jul 2012 13:29:36 +0100

Hi

I have three variables coded 1 to 15, where the meaning of each of the codes is consistent across the three variables, what I would like to do is to produce output which uses information across all of the variables and gives me the number of time  value 1, value 2 etc occurs across the three variables

If possible I would also like to generate a variable (possibly in a new dataset) which contains this info

Is this possible in stata

Thanks

Ann


Ann E Fitzmaurice  (PhD)
Medical Statistician
Immpact University of Aberdeen
Health Sciences Building
Foresterhill
Aberdeen, AB25 2ZD
Scotland
Tel: +44 (0)1224 438076
 Fax: +44 (0)1224
Email: a.e.fitzmaurice@abdn.ac.uk

The University of Aberdeen Open Day
Tuesday 28th August 2012
8.45am - 3.30pm
For more information or to book a place, visit
www.abdn.ac.uk/openday



The University of Aberdeen is a charity registered in Scotland, No SC013683.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index