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))
unbalanced panelHi everyone I'm running a regression with fixed effects of individuals: reg y x i.firm i.year i.indi…
Lagged dependent variable in mixed models?Hi everyone, I have some questions. I have a dataset of about political parties in 30 countries and …
ODBC / Access problem with Stata 16I can describe and query a database but am unable to load a table from Access using ODBC in Stata 16…
lincom value meaning?Hi, I have just run some post estimations , on an ordered logit model, Checking out changes in proba…
Using suest to compare coefficientsHi statalist, I am running an ordinal regression model separately for each sex because I expect that…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with dates (type mismatch r(109))
Post a Comment