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
@JeMangeMonChien6 жыл бұрын
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?!
@heniretnowulan5762 жыл бұрын
thank you for all the youtubes, those were very helpfull for making data analysis
@carlajorge68746 жыл бұрын
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"...
@buyanjargalchagnaadorj13814 жыл бұрын
that tutorial helped me so much thanks
@jeremiahmuhammad47222 жыл бұрын
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?
@ioannaliakou343 жыл бұрын
Thank you that was super helpful !
@MrUsmanmarwat5 жыл бұрын
I simply love this tutorial
@ireneinstenes4343 жыл бұрын
Very helpful! Saved my day!
@nicolasber777 жыл бұрын
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?
@baileestones61152 жыл бұрын
This was awesome!
@matteod73174 жыл бұрын
How do you relable "male" and "female" into 0 and 1?
@WonderTwinsActivate6 ай бұрын
Hello, is there an updated url for the file in this video so that I may follow the tutorial for Stata?
@manojcherian39149 ай бұрын
How could you assign 0 as female and 1 as male. Where did you get that information
@Non-disjunction4 жыл бұрын
My data is a string variable, so this does not work. What can I do?
@syedaanum100 Жыл бұрын
Did you find a solution to this problem? I am experiencing the same issue.
@Non-disjunction Жыл бұрын
Used a mix of Excel and Stata I think
@khedirderres3726 Жыл бұрын
short and clear
@abdikaniabdiismailelmi31869 ай бұрын
Thank you.
@juandu1027 жыл бұрын
Hi. Do you know why my stata14.0 crash, when I am creating a new value label?
@sabaaslam4766 Жыл бұрын
my stata value label option is disables , how can I enable it?
@lavhenegondenideservant22972 жыл бұрын
very useful
@Nicolerev1412 Жыл бұрын
How do you do this when it's a string variable? The "manage" button is greyed out
@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.
@hivay92582 жыл бұрын
Thank you
@bijoydey4792 жыл бұрын
Thnq u sir....
@RavindraMulye2 жыл бұрын
Dear Sir, How to resolve r(950) error, any video on that
@statacorp2 жыл бұрын
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.
@eimonwin60014 жыл бұрын
One more explanation, please! gender should be categorical/string variable, not byte/Numeric?
@statacorp4 жыл бұрын
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.