Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Creating a frequency table with multiple rows


From   "Joe McCrary" <[email protected]>
To   Statalist <[email protected]>
Subject   st: Creating a frequency table with multiple rows
Date   Mon, 30 Apr 2007 08:58:12 -0400

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.

--
Joe McCrary
**********************

"No problem can be solved from the same level of consciousness that created it."
--Albert Einstein
*
*   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