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
Related Posts with Problems with dates (type mismatch r(109))
"Data in memory have changed" warningDoes anyone know whether it's possible to disable the pop-up interface prompt that says "Data in mem…
Scatterplot only displaying meansHello everyone, I have the following problem; I have produced scatterplots displaying the median in…
Scatterplot only displaying meansHello everyone, I have the following problem; I have created a scatter plot of displaying medians o…
collinearityI'm not sure the way I paste the result here is the same way you mentioned, but I left the result he…
Interaction terms between a dummy and continuous variableHi all, I am running a fixed effects model on a data set with 18 states from 1970 to 2018. State wi…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with dates (type mismatch r(109))
Post a Comment