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
ovtestHi all I got the result in ovtest as below: How should I interpret it? . reg lwage edu exper tenure …
Replace Missing Averages with Values from Another CellI'm trying to get the average from three variables in my dataset. Code: input byte(Country Country…
Warning message for -permute- and -ritest- in Difference-in-Differences designHi Statalisters I'm doing a difference-in-differences (DiD) on a small sample (N=6, T=24) and I'm t…
How to tell which dummy is for which region if I create region dummies using i.region?My code goes like this: reg occ wage i.region …
Calculating an average that doesnt include missing valuesI have data that looks like this input str43 name float(dummyfrequency11 dummyfrequency12 dummyfrequ…
Subscribe to:
Post Comments (Atom)
0 Response to Help me
Post a Comment