code for "last and first three trading days of a month"

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: code for "last and first three trading days of a month"

Postby EViews Gareth » Wed Nov 16, 2011 3:53 pm

As I said, the dummy variable is the series called "DUMMY" in your workfile. You have created the dummy variable. If you really want to call it "X", then type:

Code: Select all

series X = dummy

pmann
Posts: 17
Joined: Wed Nov 16, 2011 9:22 am

Re: code for "last and first three trading days of a month"

Postby pmann » Wed Nov 16, 2011 4:02 pm

yes ok, lets called it "dummy" but how can i run a regression with this dummy?
is this the right way: quick->estimate equation
equation specification: return=c(1)+c(2)*dummy
method: ls - least square
sample: 1/04/1988 11/01/2011

or how can i run a regression with this dummy?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: code for "last and first three trading days of a month"

Postby EViews Gareth » Wed Nov 16, 2011 4:04 pm

Yes, that way will work.

pmann
Posts: 17
Joined: Wed Nov 16, 2011 9:22 am

Re: code for "last and first three trading days of a month"

Postby pmann » Wed Nov 16, 2011 4:10 pm

ok i hope we got it know! thank you veeeery much!!!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests