Dear community,
I am new to stata and have a problem I cannot solve.
I have dates which are in the folliwing shape 25sep2014. As the function -describe- says, the variable date is float and %td and my variable eventdate is float and %9.0g.
Now I want to set my event date.
I generated a new variable for this --> generate eventdate=0
I want that my variable eventdate will change to 1 at a particular date (afterwards I want to set my estimation window).
I typed in the following code --> replace eventdate=1 if date=="25sep2014"
I get the code "type mismatch r(109)" (I tried it without "" as well)
I already -destring- everything and deleted observations with missing data.
What else can I do?
Thank you very much
0 Response to Problems with dates (type mismatch r(109))
Post a Comment