Dear members
I have the following date: 12-Dec-15 and would like to convert it to numerical so I can great a dummy variable equal to one if the data is less than 12-Dec-15 and zero otherwise.
What’s the right code to convert the data so I can use to create the dummy variable?
thanks for your help
Related Posts with How to convert a date into numerical for subtraction
run foreach loop then error message saying my first item is not found see below, thank you!Array …
Extract coordinates from a saved graphHi, Is there any way to extract coordinates from a previously saved -twoway- graph? Thank you very…
Difference between "within" and "subpop" options in margins contrast after svy:logitHello: I get different results using within and subpop specifications in the following case (YEAR i…
PPML vs OLS Gravity ModelHello dear Statalisters! I am a student doing my Bachelor thesis and I am new to Stata as well as t…
In my humble opinion unexpected behavior of trim()Dear Stata list, I thought over this a lot of times as I did not expect to find anything unexpected…
Subscribe to:
Post Comments (Atom)
0 Response to How to convert a date into numerical for subtraction
Post a Comment