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 on April 23, and its replacement, statalist.org is already up and running.


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

st: "table" showing summary of ~100 ternary variables?


From   Michael Costello <michaelavcostello@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: "table" showing summary of ~100 ternary variables?
Date   Sat, 30 Oct 2010 13:40:39 -0400

Statlist,

I have about 100 ternary variables (0=incorrect, 1=correct, 2=No
Response, .=Missing) and I would like to get a table of the responses
that looks like this:

-------------------------------------------------------
 |         |     Correct   Incorrect     No Response   .
----------+--------------------------------------------
     Var1 |          2          21             4     21
     Var2 |          8          19            13     18
     Var3 |         30          19             4     19
     Var4 |         18          21            47     22
     Var5 |         11          27             8     30

Maybe I'd even like to add in a proportion of correct or ratio of
correct to incorrect into the table.

Is there a function to do this or something reasonable similar?
-Michael

*
*   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