Search found 6 matches
- Thu Jun 21, 2012 6:04 pm
- Forum: Data Manipulation
- Topic: Setting a smpl for a time period before a given date
- Replies: 10
- Views: 10471
Re: Setting a smpl for a time period before a given date
THANKS VERY MUCH! For some reason, the code you sent didn't work exactly on my computer. The following code does: string anndate string startdate string enddate anndate = "1/1/2000" startdate = @otod(@dtoo(anndate)-250) enddate = @otod(@dtoo(anndate)-30) smpl {startdate} {enddate} Again, m...
- Thu Jun 21, 2012 2:19 pm
- Forum: Data Manipulation
- Topic: Setting a smpl for a time period before a given date
- Replies: 10
- Views: 10471
Re: Setting a smpl for a time period before a given date
Workfile attached. I want to regress y on x, but only for days -250 to -30 before a specific date, e.g. 1/3/2000
- Wed Jun 20, 2012 5:35 am
- Forum: Data Manipulation
- Topic: Setting a smpl for a time period before a given date
- Replies: 10
- Views: 10471
Re: Setting a smpl for a time period before a given date
Yes, I have daily data from 1965 to 2012.
- Tue Jun 19, 2012 6:51 pm
- Forum: Data Manipulation
- Topic: Setting a smpl for a time period before a given date
- Replies: 10
- Views: 10471
Re: Setting a smpl for a time period before a given date
Dang. I wrong the statements incorrectly in my request to you. I should have written: When I write "%mydate = @otod(@dtoo(%anndate)-250)" I receive the error message "Illegal date".
- Tue Jun 19, 2012 1:39 pm
- Forum: Data Manipulation
- Topic: Setting a smpl for a time period before a given date
- Replies: 10
- Views: 10471
Re: Setting a smpl for a time period before a given date
Thanks for your prompt response. However, when I enter the commands you recommend, only "%anndate = "1/1/2000" works. When I add "@mydate = @otod(@dtoo(@anndate)-250) I receive the following error message: "Illegal date" Any ideas?
- Tue Jun 19, 2012 7:50 am
- Forum: Data Manipulation
- Topic: Setting a smpl for a time period before a given date
- Replies: 10
- Views: 10471
Setting a smpl for a time period before a given date
I'm doing an event study. I have stock return data from 1965 to 2012. For each announcement, I want to analyze stock values 250 to 30 days prior to the announcement. How can I specify a sample (smpl) that consists of -250 to -30 days before a given date? When I double click on "Sample", I ...
