Dear All
Is there a way where we can generate a new variable from an existing numeric variable with labels to take only the labels of the variable and not the values. When we write the following command :
"gen var=var2" and if var2 is a numeric variable with label then the new variable "var" will be a numeric variable taking only the values and not the label. I want it to take only the labels and not the value which means I want to generate a string variable taking the label of the existing variable "Var2".
Thank you in advance
Related Posts with How to generate a new variable that takes only the variable name of the other variable and not the value label
Repeated time values within panel r(451)i have panel data of firms. i have merged two data sets to process data further first i tired to dec…
xtabond2, Is my model valid?I am trying lots of models about system GMM with xtabond2 command. But I always think are there any …
bootstrapping after xtregHi, I am using xtreg for a panel-data analysis and after xtreg, I need to do bootstrap. The problem …
destringingHello, I was wondering if anyone could help me destring certain variable in my dataset. I have a var…
Labeling multiple variables using the foreach loopI am trying to learn the foreach loop command in Stata 13.0. I want to label multiple variables usin…
Subscribe to:
Post Comments (Atom)
0 Response to How to generate a new variable that takes only the variable name of the other variable and not the value label
Post a Comment