Hi there,
I have a date variable formatted as 1980m1 etc. I want to create a dummy variable which is equal to 1 if an individual was born between say 1981m12 to 1983m2 and 0 otherwise.
Your assistance is kindly needed.
Prince
Related Posts with Creating a dummy variable
Event History Analysis vs. LogitI have a conundrum regarding a policy analysis I'm running. I have a variable stateorder that is cod…
Robustness checkHello, I am using local projection method, and my data is panel fixed effect , I have two questions …
Storing and graphing the lincom estimates (inside the loop)After running the regression, I did the lincom, and then stored the estimates (with local as well as…
Question on bar graph (percentages of answer options) by group for more than 3 variablesHi all I am fairly new to Stata and the forum, I hope the way I described my problem is ok! Thank …
Selectively dropping 1 of 2 similar variables measured on the same dateData cleaning question: I have a longitudinal data set from 2009 to 2020 involving children and adol…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a dummy variable
Post a Comment