Announcement

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

  • Problems with table command in Stata17

    I have some problems using table command in Stata 17

    Code:
    webuse nhanes2l
    table (sex race) () ()
    
    collection sex not found
    r(111);
    I can't build any table., in other words I can't use the table command in stata 17. That's why I have to use the comand
    Code:
    version 16:
    in order to use the table command.

  • #2
    If what you want is a cross tabulation of sex with race, using the version 17 -table- command it's just
    Code:
    table (sex) (race)
    Or even just -table sex race- will do it.

    Comment


    • #3
      Actually, the code shown in post #1 does not display the error message shown in post #1 on my system.
      Code:
      . webuse nhanes2l
      (Second National Health and Nutrition Examination Survey)
      
      . table (sex race) () ()
      
      ------------------------
                  |  Frequency
      ------------+-----------
      Sex         |           
        Male      |           
          Race    |           
            White |      4,312
            Black |        500
            Other |        103
            Total |      4,915
        Female    |           
          Race    |           
            White |      4,753
            Black |        586
            Other |         97
            Total |      5,436
        Total     |           
          Race    |           
            White |      9,065
            Black |      1,086
            Other |        200
            Total |     10,351
      ------------------------
      
      .

      Comment


      • #4
        Hi

        It does not work

        Code:
        webuse nhanes2l
        (Second National Health and Nutrition Examination Survey)
        
        table (sex) (race)
        collection sex not found
        r(111);
        in the second example, does not work too.

        Code:
        webuse nhanes2l
        (Second National Health and Nutrition Examination Survey)
        
        table (sex race) () ()
        collection sex not found
        r(111);

        Comment


        • #5
          Like #3, it runs just fine on my system.
          Maybe you should check your Statat ado files configuration using:
          Code:
          ado update, update
          http://publicationslist.org/eric.melse

          Comment


          • #6
            It seems likely that there is a issue with the installation of Stata 17 on your system.

            If you are comfortable doing so (for example, if you are working on your own system on which you installed Stata yourself), you can follow the link to the Stata Installation Qualification Tool found on https://www.stata.com/install-guide/

            Then follow the instructions to download and run this tool to check the integrity and completeness of your Stata installation.

            Comment

            Working...
            X