Hello! First time poster here. I am trying to make a new variable out of the blanks of another variable. I want a variable called "solo" that is 1 for all the observations that don't have a value for "medicalgroup", a string variable. And "medicalgroup" doesn't have any missing variables, just embedded blanks. I tried the following:
replace solo=1 if medical group == " "
and it didn't make any changes in the "solo" column.
Any advice would be well appreciated! Thank you.
Khat
replace solo=1 if medical group == " "
and it didn't make any changes in the "solo" column.
Any advice would be well appreciated! Thank you.
Khat
Comment