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
Comparing each observation from one variable to few hundred thousand in anotherHi all, I am wondering if anyone has any ideas on how I can compare each observation from one varia…
Regular expression helpHello, Apologies for making a second regular expressions-related post today, but the topic is new t…
Predicted probabilities with mimrgns after xtgeeHello, This question refers to Daniel Klein's excellent mimrgns program. I am attempting to obtain …
Calculation of directly standardized rates "distrate" or "dstdize" commandsHello, First of all I dont know if this is the proper site to publish this, correct me if its not. …
Analyzing length of stay in clustered data (back transform)Hello, I'm a relatively new Stata user and am working on a project. I'm looking at length of stay (…
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