Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: RE: Tabulating multiple Likert-variable frequencies


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: RE: Tabulating multiple Likert-variable frequencies
Date   Wed, 18 Jan 2012 13:59:15 +0000

Is that a factorial on the power? That's a _big_ number.... 

Nick 
[email protected] 

Roosa Kohvakka

(Thank you)^(10^6)! :)

On 18.1.2012 15:46, Nick Cox wrote:

> One way to do this is with -tabm-. -tabm- is part of -tab_chi- on SSC.
>
> Here is an example:
>
> . set obs 100
> obs was 0, now 100
>
> . forval j = 1/5 {
>    2. gen my`j' = ceil(5 * runiform())
>    3. }
>
> . tabm my*
>
>             |                         values
>    variable |         1          2          3          4          5 |     Total
> -----------+-------------------------------------------------------+----------
>         my1 |        21         24         19         17         19 |       100
>         my2 |        21         16         20         23         20 |       100
>         my3 |        19         21         23         13         24 |       100
>         my4 |        18         32         17         15         18 |       100
>         my5 |        17         17         14         32         20 |       100
> -----------+-------------------------------------------------------+----------
>       Total |        96        110         93        100        101 |       500
>
>
>
> Nick
> [email protected]
>
> Roosa Kohvakka
>
> Is there an easy way to create a table of multiple Likert-variables,
> looking something like this:
>
> Rows: Var_, ..., Var_n
> Columns: 1, 2, 3, 4, 5 (i.e. the Likert-scale)
>
> Cells would be frequencies or percentages.
>
> tab1-command is not of any use as I have so many variables: The idea is
> to get one long table with six columns (Likert scales plus var names)
> and as many rows as there are variables (+1).

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index