Page 1 of 1

dummy varibles help

Posted: Fri Dec 16, 2011 1:05 pm
by diesel20056
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

Re: dummy varibles help

Posted: Fri Dec 16, 2011 2:36 pm
by EViews Glenn
I don't quite understand the question. Could you elaborate?

Re: dummy varibles help

Posted: Fri Dec 16, 2011 2:49 pm
by diesel20056
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

Re: dummy varibles help

Posted: Fri Dec 16, 2011 4:24 pm
by EViews Glenn
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...

Re: dummy varibles help

Posted: Sat Dec 17, 2011 2:48 am
by diesel20056
thanks alot that helped :D

Re: dummy varibles help

Posted: Sat Dec 17, 2011 1:44 pm
by diesel20056
Hey, how would I compute a equation to show the differences for the women and mens salaries side by side on the ols table