I am running a regression using annual salary as the dependent variable.
I want to enter four variables.
I understand that the variables are either entered using 1 or 0 or the numerical amounts.
One variable is gender (0= male, 1= female.
Time with company (entered as number of years)
Time in job (entered as number of years)
However, my fourth variable is "location" (city) of where the work is performed.
I need to use the location to help determine if that has an affect on the overall difference in salary between genders.
I do not know how I would enter the 4 different locations as numeric to determine if any particular location had a greater affect than the other three. I believe that the regression would only tell me if overall "location" has an affect, even if I use 1,2,3,4 to identify the different locations.
Am I wrong, or how would I reference each location to get which location has a greater affect on the r square?
Thanks for any help
Bookmarks