Joe McCrary wrote:
Can someone please recommend to me a way to create a frequency table
with multiple rows, one row per variable?
I've got survey data and many of the questions were typical 5-point
likert scales, where a particular question was asked of 6-12 different
subquestions. Each variable corresponds to a subquestion, and is
typically coded 1-5. I'd like to output the data like this:
1 2 3 4 5 N
q2a 6 15 33 29 27 1459
q2b 2 26 48 20 4 1424
and so on. Ideally, the numbers under the 1-5 categories will be the
row percent, and the last column will contain the total number of
non-missing responses.
----------------------------------------------------------
Nick Cox created -tabm- which is pretty close to what you want.
It is part of the -tab_chi- package. Get it by:
ssc install tab_chi
Hope this helps
Svend
__________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [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/