Page 1 of 2
Exclude Mondays From Sample
Posted: Sun May 03, 2015 4:37 am
by kroonike
Hello,
I'm just learning how to use Eviews and have a newbie question. I've imported 14 years of daily panel data, and would like only to analyse the datapoints from Tuesdays to Fridays (excluding Mondays). I believe it is done through "sample" option, but I wasn't able to find any information on how to include only specific days of the week.
Vitali
Re: Exclude Mondays From Sample
Posted: Sun May 03, 2015 11:08 am
by EViews Gareth
Re: Exclude Mondays From Sample
Posted: Tue May 19, 2015 8:27 am
by Marcel Visser
I have got a similar question, I have two work files, one with panel data and one with unstructured data. In both of these data sets I would like to create two samples. One in which my dummy variable equals 1 and another in which my dummy variable equals 0. The reason for this is that i would like to get separate regression outputs for multinationals, dm 1, and domestic companies, dm 0. I have tried (smpl if @dm=1), (smpl @dm=1), (smpl if @dm>0) and (smpl @dm>0). Non of the work. What am i doing wrong?
I would like to thank you in advance for your help.
Marcel Visser
Re: Exclude Mondays From Sample
Posted: Tue May 19, 2015 8:43 am
by EViews Gareth
Re: Exclude Mondays From Sample
Posted: Wed Apr 13, 2016 7:35 am
by magister
How can I remove a specific date/dates from a sample? I've tried smpl if @date <>"specific date/s", smpl if @day <>"specific date/" (in the case of daily data), but it does not work. Also, I've tried to make 2 sub-sample: @first specific date-1 specific date +1 @last, but GARCH models require a continous sample.
Thank you.
Re: Exclude Mondays From Sample
Posted: Wed Apr 13, 2016 9:07 am
by EViews Gareth
How did you enter the specific dates?
GARCH does require a continuous sample.
Re: Exclude Mondays From Sample
Posted: Thu Apr 14, 2016 3:02 am
by magister
How did you enter the specific dates?
GARCH does require a continuous sample.
Do you mean the format which I have entered the date? It's MM/DD/YYYY format.
Re: Exclude Mondays From Sample
Posted: Thu Apr 14, 2016 6:32 am
by EViews Gareth
You need to do:
Code: Select all
smpl if @date<>@dateval("mydate")
Re: Exclude Mondays From Sample
Posted: Thu Apr 14, 2016 2:14 pm
by magister
You need to do:
Code: Select all
smpl if @date<>@dateval("mydate")
And for multiple dates?
Re: Exclude Mondays From Sample
Posted: Thu Apr 14, 2016 7:16 pm
by EViews Gareth
Code: Select all
smpl if @date<>@dateval("mydate") and @date<>@dateval("myotherdata")
Re: Exclude Mondays From Sample
Posted: Sat Apr 16, 2016 3:58 am
by ecofin
hi,
supose i would excluse an interval date from the range, for example from 2/01/2003 to 6/6/2003, i have use this: smpl if @date<>@during("2/01/2003 6/6/2003") but doesn't work.
Re: Exclude Mondays From Sample
Posted: Sat Apr 16, 2016 4:34 am
by EViews Gareth
You don't need the @date<> bit
Re: Exclude Mondays From Sample
Posted: Sat Apr 16, 2016 4:39 am
by ecofin
but when i use smpl if @during(" 2/01/2003 6/6/2003") i get 257 obs, i have 1000 obs in the range it should be 743 obs in smpl
Re: Exclude Mondays From Sample
Posted: Sat Apr 16, 2016 5:37 am
by EViews Gareth
What is the frequency?
Re: Exclude Mondays From Sample
Posted: Sat Apr 16, 2016 6:59 am
by ecofin
i have three frequency in the three page, daily 7 day, monthly frequency (2nd page), and weekly in 3rd page.