Announcement

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

  • Problem to Statistic Descriptive

    Hi! Can someone help me, please? I'm facing some difficulty to make a statistic descriptive.
    So when i do the "tab" command, it will show "prodi" data start with number 0, same with "semester" start with number 2. But i dont understand when i do the sum with command "sum i.prodi i.smt" the data did not show from the first category, it just start from the number 1 in "prodi" and number 4 in "smt". It's not matching with the tabulation data... I dont know how to solve this please someone help me

    Click image for larger version

Name:	WhatsApp Image 2024-07-15 at 22.59.51_150731cb.jpg
Views:	1
Size:	24.0 KB
ID:	1758778

    Click image for larger version

Name:	WhatsApp Image 2024-07-15 at 21.04.49_b19f7937.jpg
Views:	1
Size:	44.3 KB
ID:	1758777


  • #2
    What version of Stata do you have? Unless you have changed the settings of factor variables so as to exclude base levels, I cannot replicate this behavior. Try

    Code:
    sum ibn.(prodi smt)

    Comment


    • #3
      I'm using Stata 13. I dont think i have changed the setting to exclude base levels
      Also, i have tried the code that you suggested but the full category was only showed for the "prodi" variable, not with the "smt". How about this?
      Click image for larger version

Name:	stata.jpg
Views:	1
Size:	34.9 KB
ID:	1758784

      Comment


      • #4
        The version explains it. Either remove the space between ibn. and the opening parenthesis, or

        Code:
        sum ibn.prodi ibn.smt

        Comment


        • #5
          oh my God, it works! Thank you so much for your help!! I really appreciate it

          Comment

          Working...
          X