Hi
I want to create a new variable (var3) using an existing variable (var2).
Like the attached photo
a, b = 1
c = 2
d, e = 3
I want to make it like this.
How should I use the command in stata 13 ?
It is not necessary to use the "if" command. Array
Related Posts with Generate new variable by command "if"
MAC OSX directoryHello, I am using a Mac OS X, and I am sharing a do file with others who are using PC. I need to c…
Selecting Controls based on time from admission to eventHello, I have a dataset of unique observations that have been grouped according to whether the part…
Latex with StataHi what is the command to present the results of summarize and esttab commands in latex, please …
Graph Workflow (https://ift.tt/2vUXch6)My apologies for the unsolicited ad, but I believe that this announcement could be of interest to so…
svg layers disappearingHi all, I'm hoping for some advice in trouble shooting. I'm having trouble export svg files - my la…
Subscribe to:
Post Comments (Atom)
0 Response to Generate new variable by command "if"
Post a Comment