Announcement

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

  • How to add values to label?

    I have a dataset and I want to add the values for the variables in the label so I can see what values are assigned to each label when I tab it. I can't use the numlabel, add command because I don't have a label name for the variable because I didn't create and label the variable. Also, the codebook command doesn't list all values because there are 11 values and it only gives examples of them.

    P.S I will change my name soon. Thanks
    R. Swaminathan

  • #2
    Please make this concrete. At a guess you are referring to value labels, but I am not completely sure.

    If numeric values are not labelled, then you should be able to see them as they are using tabulate, so your post appears to contradict itself.

    Examples of what your data look like, what commands you tried, what output, please.

    Comment


    • #3
      Sorry for the confusion. For example, when I tab a variable, educ, I get

      Code:
         Husband's |
         Education |      Freq.     Percent        Cum.
      -------------+-----------------------------------
       Valid blank |        124        0.37        0.37
              None |      7,208       21.53       21.90
                 1 |        163        0.49       22.39
                 2 |        654        1.95       24.34
                 3 |        836        2.50       26.84
                 4 |      1,244        3.72       30.55
      5th standard |      2,507        7.49       38.04
                 6 |      1,048        3.13       41.17
                 7 |      1,776        5.30       46.47
                 8 |      2,467        7.37       53.84
                 9 |      2,716        8.11       61.95
            Matric |      4,033       12.05       74.00
                11 |        575        1.72       75.72
        Higher sec |      2,260        6.75       82.47
                13 |         76        0.23       82.69
                14 |        104        0.31       83.00
          Graduate |      3,164        9.45       92.45
                 . |      2,527        7.55      100.00
      -------------+-----------------------------------
             Total |     33,482      100.00
      How do I get the values of "Valid blank" and "None" to show up when I tab. I need this to recode. Thanks

      Comment


      • #4
        I see now what you want. The switch you want is documented as tabulate, nolabel

        Comment


        • #5
          Nick is probably right: the variable is numeric with some of the values labeled. On the other hand, you write that the label has no name, which is impossible. Take a look at the output from
          Code:
          describe
          label list
          If Nick is right, this command would also have effect:
          Code:
          numlabel , add

          Comment

          Working...
          X