I'm trying to create a set of 8 dummy variables from one variable that was
coded with values 1 to 8. I'm having trouble dealing with the missing
values appropriately. If the original variable "intgtype" has a missing
value, I want the new variable to have a missing value as well. Where do I
insert the missing value statement and what should it look like? I'm sure
there is a much more efficient way to write the code below as well.
IF intgtype=3 wstdltd=1.
if intgtype=4 awstdltd=1.
if intgtype=1 stdltd=1.
if intgtype=2 astdltd=1.
if intgtype=7 whstdltd=1.
if intgtype=8 awhstltd=1.
if intgtype=5 hstdltd=1.
if intgtype=6 ahstdltd=1.