dummy varibles help

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

diesel20056
Posts: 5
Joined: Thu Dec 15, 2011 6:57 am

dummy varibles help

Postby diesel20056 » Fri Dec 16, 2011 1:05 pm

can some help i have these varibles y x e t and want to make a dummy varible 1 if female ,0 otherwise can some one help as i need to see the differences between the males and females within the data thanks

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: dummy varibles help

Postby EViews Glenn » Fri Dec 16, 2011 2:36 pm

I don't quite understand the question. Could you elaborate?

diesel20056
Posts: 5
Joined: Thu Dec 15, 2011 6:57 am

Re: dummy varibles help

Postby diesel20056 » Fri Dec 16, 2011 2:49 pm

there is data for 93 people the starting salary =Y education in years =X months of previous work experience =E the month in which the individual was hired =T with individuals hired in the first month having T=1 and those hired in the last month having T=36.

The first 61 observations are for female employees and the last 32 observations are or male employees.
i need to make a dummy varible so i can see if males do get a higher starting wage or not, hope that helps

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: dummy varibles help

Postby EViews Glenn » Fri Dec 16, 2011 4:24 pm

The command

series female = @trend<61

creates the dummy variable with 1's for the first 61 observations, and 0's for the remainder (you should check that this lines up with what you expect). Just type that in the command line...

diesel20056
Posts: 5
Joined: Thu Dec 15, 2011 6:57 am

Re: dummy varibles help

Postby diesel20056 » Sat Dec 17, 2011 2:48 am

thanks alot that helped :D

diesel20056
Posts: 5
Joined: Thu Dec 15, 2011 6:57 am

Re: dummy varibles help

Postby diesel20056 » Sat Dec 17, 2011 1:44 pm

Hey, how would I compute a equation to show the differences for the women and mens salaries side by side on the ols table


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests