Simple "sex" dummy variable

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

Gemini
Posts: 2
Joined: Wed Mar 03, 2010 1:04 pm

Simple "sex" dummy variable

Postby Gemini » Wed Mar 03, 2010 1:25 pm

Just opened EViews (5) for the first time and now I'm supposed to create a dummy variable.

I've got a sample with such variables as "work experience", "education", "wages", "woman", "married" etc.

I'm supposed to create a new binary variable "man" with possible values 1 (the person is male) & 0 (the person is female). (Or man=1, if male; =0, otherwise.)

How to create such a variable? Note that the data already has a variable for sex, namely the above-mentioned "woman" variable which is woman=1, if female; =0, otherwise. Am I somehow supposed to use that to create the "man" variable?

(Are "binary" and "dummy" interchangeable in this case?)

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

Re: Simple "sex" dummy variable

Postby EViews Gareth » Wed Mar 03, 2010 1:57 pm

series man = 1-woman

Gemini
Posts: 2
Joined: Wed Mar 03, 2010 1:04 pm

Re: Simple "sex" dummy variable

Postby Gemini » Wed Mar 03, 2010 3:28 pm

Makes sense, thanks!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests