Dummy variables

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Strayzen23
Posts: 3
Joined: Sat Nov 30, 2013 7:52 am

Dummy variables

Postby Strayzen23 » Sat Nov 30, 2013 8:04 am

Hello. I'm having a problem.
My task is to make 3 dummy variables named "june", "july" and "august". June should be =1, when Month=6, and 0 if Month is not 6, july =1, when Month=7, and 0 if Month is not 7, and august =1, when Month=8 and 0 if Month is not 8.


After that I have to estimate sample variable between ArrDelay, Dep Delay and Distance. In other words, estimate the correlation matrix.

Can someone please show me how to do it, either by words or print screens of the process.
Attachments
delays.xls
xls document.
(1.42 MiB) Downloaded 210 times

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Dummy variables

Postby trubador » Sat Nov 30, 2013 8:40 am

You'll find plenty of examples in the forum if you search. Like this one: http://forums.eviews.com/viewtopic.php?f=4&t=3840
I also recommend "EViews Illustrated"...

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

Re: Dummy variables

Postby EViews Gareth » Sat Nov 30, 2013 8:55 am


Strayzen23
Posts: 3
Joined: Sat Nov 30, 2013 7:52 am

Re: Dummy variables

Postby Strayzen23 » Sat Nov 30, 2013 12:44 pm

Can't make it work. Just get NA on the months that are different to 6.
Can someone please help me solve this?

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

Re: Dummy variables

Postby EViews Gareth » Sat Nov 30, 2013 12:50 pm

What did you do?

Strayzen23
Posts: 3
Joined: Sat Nov 30, 2013 7:52 am

Re: Dummy variables

Postby Strayzen23 » Sun Dec 01, 2013 5:48 am

got i now :)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest