Announcement

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

  • Numeric variables displaying strings

    Dear all,
    In the data file attached there seem to be variables with "double format" (string and numeric)
    For example the variable V341 allegedly displays strings yet when I double click any of it's cell a numeric value appears. I wish to have the var. displayed in it's numeric format and I don't sure how to ask Stata to do that (I have tried everything I could think about) .
    Thanks for any suggestion..
    Best,
    Anat
    Attached Files

  • #2
    Please read the FAQ about posting attachments. The general recommendation is DON'T. You can use dataex (explained in FAQ #12), or in this case, the output from the describe command.

    describe indeed shows that V341 is a numeric variable in stored in type double. It also shows that there is a value label attached. The name of the value label is V341. Read about value labels in help label. When you look at the variable in the data editor or using tabulate, you see the value labels. You can examine these value labels with:

    Code:
    lab list V341 
    *to see all:
    lab list
    Options:
    1. In the data editor, -Right click on a value in the variable -Select Data, -then select Value Labels, -then select Hide Value Labels.
    2. When using tabulate or list, use the no label option (tab V341, nolab) (list , nolab)
    3. Drop the value labels:
    Code:
    lab drop V341
    *to drop all:
    lab drop _all
    Stata/MP 14.1 (64-bit x86-64)
    Revision 19 May 2016
    Win 8.1

    Comment


    • #3
      Thank you very much!

      Comment

      Working...
      X