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: Finding the Most Common Combinations


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Finding the Most Common Combinations
Date   Thu, 30 Jun 2011 20:51:02 +0100

Some technique for sorting in rows is described at

SJ-9-1  pr0046  . . . . . . . . . . . . . . . . . . .  Speaking Stata: Rowwise
        (help rowsort, rowranks if installed) . . . . . . . . . . .  N. J. Cox
        Q1/09   SJ 9(1):137--157
        shows how to exploit functions, egen functions, and Mata
        for working rowwise; rowsort and rowranks are introduced

after which -groups- (SSC) will show joint frequencies. See also

SJ-3-4  pr0011  . . . . . . . .  Speaking Stata: Problems with tables, Part II
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q4/03   SJ 3(4):420--439                                 (no commands)
        reviews three user-written commands (tabcount, makematrix,
        and groups) as different approaches to tabulation problems

Nick

On Thu, Jun 30, 2011 at 5:50 PM, Zach Levin <[email protected]> wrote:

> I have a dataset where each observation is a person and there are 5 variables for each of their health insurance plans. That is, PLAN1-PLAN5 each take on a number corresponding to a type of health insurance plan. My question is how I would go about finding the most combination of plans since the order in which they are reported is completely arbitrary (that is, PLAN1 does not correspond to the "first" plan, just the first one they reported).
>
> I am using Stata 11.

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