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
Quantile-Quantile plotsHi, I have been given a particular dataset which has the beta values and the corresponding z-scores…
Weighting binary response based on certaintyHi everyone, If I have a binary response variable (yes/no to a hypothetical referendum on a survey)…
Dummy variable value dependent on any of the 36 values in a string variableI am a beginner in Stata (ver 16) and need help regarding dummy variable. There is a dummy variable…
Duncan Segregation Index with Aggregate DataI'd like to calculate the duncan index of segregation, for occupational gender segregation. In addit…
Generated regressor in interaction termHi everyone Short form of question Can you use standard corrections for generated regressors when t…
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