Main Page | Report this Page
 
   
Science Forum Index  »  Statistics - Math Forum  »  Dummy variables...
Page 1 of 1    
Author Message
...
Posted: Thu Jul 03, 2008 6:28 am
Guest
Hello. Can anyone help me in e views? I want to make 5 dummy variables
one for each day of the week. Can you help me how I'm gong to do it?
Thanks you
...
Posted: Thu Jul 03, 2008 7:44 am
Guest
On Jul 3, 5:42 pm, Richard Startz <richardstar... at (no spam) comcast.net> wrote:
Quote:
On Thu, 3 Jul 2008 09:28:37 -0700 (PDT), dimanagnostopou... at (no spam) gmail.com
wrote:

Hello. Can anyone help me in e views? I want to make 5 dummy variables
one for each day of the week. Can you help me how I'm gong to do it?
Thanks you

Assuming you have a dated workfile and just want to include the
dummies in a regression you can include at (no spam) expand( at (no spam) weekday) as a
regressor.

If you actually want to create the dummies, then

series D1 = 0
smpl if at (no spam) weekday=1
D1=1
smpl at (no spam) all
series D2 = 0
smpl if at (no spam) weekday=2
D2=1

etc.

-Dick Startz

Thanks you very much. I'll try because it's my first time i'm using e
views. Thanks a lot
Richard Startz...
Posted: Thu Jul 03, 2008 11:42 am
Guest
On Thu, 3 Jul 2008 09:28:37 -0700 (PDT), dimanagnostopoulos at (no spam) gmail.com
wrote:

Quote:
Hello. Can anyone help me in e views? I want to make 5 dummy variables
one for each day of the week. Can you help me how I'm gong to do it?
Thanks you

Assuming you have a dated workfile and just want to include the
dummies in a regression you can include at (no spam) expand( at (no spam) weekday) as a
regressor.

If you actually want to create the dummies, then

series D1 = 0
smpl if at (no spam) weekday=1
D1=1
smpl at (no spam) all
series D2 = 0
smpl if at (no spam) weekday=2
D2=1

etc.

-Dick Startz
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Tue Dec 02, 2008 2:53 am