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
Tobit model in cmp -- marginal effect on probability of positive outcomeHi all, I am trying to estimate the marginal effect of the regressors on the probability of an unce…
Syntax for algorithm that combines items received by (individuals and HH units)Dear all, I am trying to do the calculations for the algorithm below (i.e. to create the syntax for …
Calculating subsequent surgeries with data in long formatDear STATAList forum, I'm working with ophthalmic surgery data, trying to calculate which types of …
how to identify cases with error when the relationship code and the age do not matchDear All I have a dataset where I want to check the relationship code and age of the household head…
Question concerning structuring long format dataHi, I am working with longitudinal data in long format. Idnr is identification number and time is t…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a dummy variable
Post a Comment