Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • table summarizing 3 categorical variables in string form between two groups (binary variable)

    Hello,

    I am having a hard time finding examples of summary tables between two groups let's say students who dropped out vs those who didn't (a binary variable 1=dropped out and 2= student), I want to know their gender, age (18-88), parents' highest education level(5 choices), marital status (5 choices).
    I have been using tabulate command to make two-way table to compare each demographic (tab gender dropout) but ideally I would like to have them all in one table.

  • #2
    groups from the Stata Journal may help here. See https://www.statalist.org/forums/for...updated-on-ssc for an overview and https://www.stata-journal.com/articl...article=st0496 for an accessible longer version.

    groups was an attractive name for the program author and possibly even some users -- but it is a lousy search term. However, note that st0496 is an otherwise unpredictable search term that will yield fewer hits. Hence in Stata typing this will find the latest version of the code and help (which may be later than this if you type this in the future).


    Code:
    . search st0496, entry
    
    Search of official help files, FAQs, Examples, and Stata Journals
    
    SJ-18-1 st0496_1  . . . . . . . . . . . . . . . . . Software update for groups
            (help groups if installed)  . . . . . . . . . . . . . . . .  N. J. Cox
            Q1/18   SJ 18(1):291
            groups exited with an error message if weights were specified;
            this has been corrected
    
    SJ-17-3 st0496  . . . . .  Speaking Stata: Tables as lists: The groups command
            (help groups if installed)  . . . . . . . . . . . . . . . .  N. J. Cox
            Q3/17   SJ 17(3):760--773
            presents command for listing group frequencies and percents and
            cumulations thereof; for various subsetting and ordering by
            frequencies, percents, and so on; for reordering of columns;
            and for saving tabulated data to new datasets
    I count 5 variables in the question, but in principle groups can cope. I assert confidently that a 5-way table would be unreadable unless converted to list form -- and perhaps even then.

    Comment


    • #3
      Alternatively tab2 may be what you want. See its help for more.

      Comment


      • #4
        there are a number of user-written commands that do what I think you want (but you are not clear whether, e.g., you want this all in one table); so you might want to use -search- or -findit- to find and download some of these - here are a few names (not complete probably): table1_mc, basetable, partchart, sumtable, baselinetable

        Comment

        Working...
        X