HELP!!!
Hi, I want to create a dummy from the second dummy variable which is 1 or 2 in case the code is repeated I want that observation which is 1 or 2 to become a 1 in my new variable
CODIGO var x new var challengue
1233xxxx345 2 . C0001
1233xxxx345 1 1 C0001
I want to create a variable that can contain that observation in a 1
* Example generated by -dataex-. To install: ssc install dataex
clear
input str11 ruc byte usuario
"A024xxxx542" 2
"A024xxxx542" 1
"A025xxxx735" 2
"A025xxxx204" 2
"A025xxxx713" 2
"A029xxxx471" 1
"A029xxxx471" 2
"A029xxxx342" 2
"A029xxxx796" 2
end
label values usuario usuario
label def usuario 1 "Solicitante", modify
label def usuario 2 "Participante", modify
[/CODE]
------------------ copy up to and including the previous line ------------------
Listed 100 out of 1480 observations
Use the count() option to list more
Related Posts with Help me
Stata 17 - bayesmh not replicating a simple example already done in Stata 15Dear Forum Members, I'm trying to replicate in Stata 17 this (quite simple) example from Stata Yout…
Problem with svyset using panel dataHi, …
Scatter plot troubles! Hi! I'm trying to analyse some statistics and was having trouble figuring out why my scatter plots …
Writing a Program for repetitive calculationDear Statalist colleagues, I am keep calculating same formula for more than 10 variables and wanted…
Generating four new variables out of one variable in a panel datasetHello, I'm trying to create four new variables in the following dataset: Code: input long pidp fl…
Subscribe to:
Post Comments (Atom)
0 Response to Help me
Post a Comment