Data management: How to label the values of categorical variables

  Рет қаралды 135,316

StataCorp LLC

StataCorp LLC

Күн бұрын

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.

Пікірлер: 29
@JeMangeMonChien
@JeMangeMonChien 6 жыл бұрын
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
@carlajorge6874
@carlajorge6874 6 жыл бұрын
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"...
@buyanjargalchagnaadorj1381
@buyanjargalchagnaadorj1381 4 жыл бұрын
that tutorial helped me so much thanks
@jeremiahmuhammad4722
@jeremiahmuhammad4722 2 жыл бұрын
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?
@ioannaliakou34
@ioannaliakou34 3 жыл бұрын
Thank you that was super helpful !
@MrUsmanmarwat
@MrUsmanmarwat 5 жыл бұрын
I simply love this tutorial
@ireneinstenes434
@ireneinstenes434 3 жыл бұрын
Very helpful! Saved my day!
@nicolasber77
@nicolasber77 7 жыл бұрын
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?
@baileestones6115
@baileestones6115 2 жыл бұрын
This was awesome!
@matteod7317
@matteod7317 4 жыл бұрын
How do you relable "male" and "female" into 0 and 1?
@WonderTwinsActivate
@WonderTwinsActivate 6 ай бұрын
Hello, is there an updated url for the file in this video so that I may follow the tutorial for Stata?
@manojcherian3914
@manojcherian3914 9 ай бұрын
How could you assign 0 as female and 1 as male. Where did you get that information
@Non-disjunction
@Non-disjunction 4 жыл бұрын
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
@khedirderres3726
@khedirderres3726 Жыл бұрын
short and clear
@abdikaniabdiismailelmi3186
@abdikaniabdiismailelmi3186 9 ай бұрын
Thank you.
@juandu102
@juandu102 7 жыл бұрын
Hi. Do you know why my stata14.0 crash, when I am creating a new value label?
@sabaaslam4766
@sabaaslam4766 Жыл бұрын
my stata value label option is disables , how can I enable it?
@lavhenegondenideservant2297
@lavhenegondenideservant2297 2 жыл бұрын
very useful
@Nicolerev1412
@Nicolerev1412 Жыл бұрын
How do you do this when it's a string variable? The "manage" button is greyed out
@statacorp
@statacorp Жыл бұрын
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.
@hivay9258
@hivay9258 2 жыл бұрын
Thank you
@bijoydey479
@bijoydey479 2 жыл бұрын
Thnq u sir....
@RavindraMulye
@RavindraMulye 2 жыл бұрын
Dear Sir, How to resolve r(950) error, any video on that
@statacorp
@statacorp 2 жыл бұрын
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.
4. How to label variable names, variable values and rename variables in STATA
17:46
Learn data analytics with us
Рет қаралды 24 М.
Categorical Variables in Stata
7:56
SebastianWaiEcon
Рет қаралды 137 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 3,7 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 9 МЛН
Data management: How to create a date variable from a string
4:54
StataCorp LLC
Рет қаралды 86 М.
Data management: How to merge files into a single dataset
5:24
StataCorp LLC
Рет қаралды 199 М.
How To Put Labels On Variable Values In Stata
17:09
thequickbooksdude
Рет қаралды 416
STATA(5) Recode
5:10
junchen feng
Рет қаралды 71 М.
Data management: How to change the display format of a variable
2:09
Stata Tutorial: Recoding Categorical Variables
6:38
W R
Рет қаралды 15 М.