Data management: How to label the values of categorical variables

Поделиться
HTML-код
  • Опубликовано: 28 авг 2016
  • This video demonstrates how to label the values of categorical variables in Stata using the label command.
    www.stata.com
    Copyright 2011-2019 StataCorp LLC. All rights reserved.

Комментарии • 28

  • @JeMangeMonChien
    @JeMangeMonChien 5 лет назад +4

    Thank you Chuck! I've been googling how to do this for a bit and this video was nice and concise! Who knew that the problem could be easily fixed?!

  • @heniretnowulan576
    @heniretnowulan576 2 года назад

    thank you for all the youtubes, those were very helpfull for making data analysis

  • @MrUsmanmarwat
    @MrUsmanmarwat 5 лет назад

    I simply love this tutorial

  • @ireneinstenes434
    @ireneinstenes434 3 года назад

    Very helpful! Saved my day!

  • @ioannaliakou34
    @ioannaliakou34 3 года назад

    Thank you that was super helpful !

  • @buyanjargalchagnaadorj1381
    @buyanjargalchagnaadorj1381 4 года назад

    that tutorial helped me so much thanks

  • @baileestones6115
    @baileestones6115 2 года назад

    This was awesome!

  • @abdikaniabdiismailelmi3186
    @abdikaniabdiismailelmi3186 7 месяцев назад

    Thank you.

  • @khedirderres3726
    @khedirderres3726 Год назад

    short and clear

  • @hivay9258
    @hivay9258 2 года назад

    Thank you

  • @lavhenegondenideservant2297
    @lavhenegondenideservant2297 2 года назад

    very useful

  • @bijoydey479
    @bijoydey479 2 года назад

    Thnq u sir....

  • @carlajorge6874
    @carlajorge6874 5 лет назад +3

    Hello! Do you know how to add value labels with range? For example I want to label 1 to 5 as "Label X", 6 to 10 as "Label Y", 11 to 12 as "Label Z"...

  • @nicolasber77
    @nicolasber77 7 лет назад +1

    did just as the video for a categorical variable rather than a binary one, when using reg y i.x, where x is the variable I labeled values to, regression output still comes out with x and separates cases but for the values and not the labels: x x.1 x.2 x.3 x.3.... i want to get x label1 label2 insted of the assosiated numerical values... can it be done?

  • @jeremiahmuhammad4722
    @jeremiahmuhammad4722 2 года назад +1

    Is there a faster way to relabel counties in a state? For example, I have 159 counties. Or do I have to do that individually?

  • @juandu102
    @juandu102 7 лет назад

    Hi. Do you know why my stata14.0 crash, when I am creating a new value label?

  • @matteod7317
    @matteod7317 4 года назад +2

    How do you relable "male" and "female" into 0 and 1?

  • @WonderTwinsActivate
    @WonderTwinsActivate 4 месяца назад

    Hello, is there an updated url for the file in this video so that I may follow the tutorial for Stata?

  • @sabaaslam4766
    @sabaaslam4766 Год назад

    my stata value label option is disables , how can I enable it?

  • @Non-disjunction
    @Non-disjunction 4 года назад +2

    My data is a string variable, so this does not work. What can I do?

    • @syedaanum100
      @syedaanum100 Год назад

      Did you find a solution to this problem? I am experiencing the same issue.

    • @Non-disjunction
      @Non-disjunction Год назад

      Used a mix of Excel and Stata I think

  • @Nicolerev1412
    @Nicolerev1412 Год назад

    How do you do this when it's a string variable? The "manage" button is greyed out

    • @statacorp
      @statacorp  Год назад +1

      You cannot attach a value label to a string variable; if you would like to convert your string variable to a numeric variable, please type *help encode* . You can then attach a value label to the new numeric variable.

  • @RavindraMulye
    @RavindraMulye 2 года назад

    Dear Sir, How to resolve r(950) error, any video on that

    • @statacorp
      @statacorp  2 года назад +1

      It seems like you don't have enough memory. Please type *compress* in the Stata Command window; this command will check whether the amount of memory used by your data can be reduced. You can then try issuing the command again. If you still get the error, please email us at tech-support@stata.com.

  • @eimonwin6001
    @eimonwin6001 4 года назад

    One more explanation, please! gender should be categorical/string variable, not byte/Numeric?

    • @statacorp
      @statacorp  4 года назад

      The sex variable could be stored as a string variable or as a numeric variable with 2 categories. In the numeric case, value labels can be added (as shown in this video) to identify what each numeric value represents. In some cases, such as including a variable in a regression, it is necessary for the variable to be stored as a numeric variable. If you need to convert from a string to numeric, you can use the *encode* command, which will automatically create value labels for you.