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))
Pooled OLS with interaction on almost all explanatory variablesDear Statalist, I have panel data covering 763 firms over 15 years, taken from an industry consorti…
Significance tests after statsby with sureg regressionDear all, I am doing an Event-Study with 649 firm announcements and estimate every announcement wit…
Building Index based on dummy and ordered multinomial variablesDear Stata users, I am working on the replication of a poverty index based on 34 socieconomic varia…
Creating an indexHello, I would like to create an index with several variables (high-tech exports in US$, no. of tech…
predictnl and factor variablesDear All, suppose I have the following: Code: logit Y X1 X2 X3 i.COUNTRY i.YEAR, cluster(S003) Af…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with dates (type mismatch r(109))
Post a Comment