I'm trying to generate a new binary variable for my DV. Using the GSS2010 data. But I can't seem to figure out how to get 1 for exciting and 0 for routine or dull. The variable is "life" and it's outcomes are "exciting," "routine," and "dull." I want to generate a new variable called "excitinglife" where "exciting" = 1, and "routine" or "dull" = 0. I also want to exclude missing values. But I've run into many error messages, particularly, the type mismatch on the life variable. What commands should I be using to create this dummy variable?
-
Login or Register
- Log in with
Comment