Hello there
I have a large dataset of firms with weekly data on stock prices. I want to estimate a yearly regression for each firm. Is there any code to do that (i.e. using the smpl command)? Thanks in advance!
Anual estimation of weekly data
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Anual estimation of weekly data
Could you be a bit more explicit as to what you're trying to do?
Re: Anual estimation of weekly data
I am trying to estimate yearly regressions using weekly data. Therefore, in each year I will have a large number of weeks (the number of weeks depends on the year). I am using the smpl command to update the sample for each year (for example year 2007 should ran using the command smpl !year !year where !year=2007). Is there an alternative way to do that?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Anual estimation of weekly data
Not really, you'll have to use samples.
Re: Anual estimation of weekly data
Thanks for the prompt answer. Therefore I have to create samples for example using the command sample mysample1990 1990 1990 should create a sample that when used in weekly data includes all the weeks in 1990?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Anual estimation of weekly data
This provides a sample that includes the last week of the previous year. However if I use the comand sample mysample1999 1999+1 1999 then it creates the right sample. Is this something I should expect?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Anual estimation of weekly data
EViews views a week as being in a year if any day of that week was in that year.
Who is online
Users browsing this forum: No registered users and 2 guests
