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))
How to make categories using standardized variable and its standard deviationI am interested in making categories(Large, small, medium) based on the log of [/CODE]market value o…
Hsiao test, error 2001Dear all, I'm trying to execute a Hsiao test. Thus, I have the following and basic code: codebook …
Fixed vs Random Effects - help regarding choiceHello together, I am regressing a panel data model with t=12 and n=230. In general, I measure the e…
combining dotplot graphsI can't succed in combining dotplot graphs: I have there distinct groups of observations, marked wit…
commandsMy name is Alex Kinuthia, a graduate student in Egerton University pursuing a Master Degree in Agrie…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with dates (type mismatch r(109))
Post a Comment