Question: Suppose you have a dataset that contains a variable, named Hemoglobin, that gives measured hemoglobin values (in g/l) for 100 adult women. And suppose that

Suppose you have a dataset that contains a variable, named Hemoglobin, that gives measured hemoglobin values (in g/l) for 100 adult women. And suppose that you want to create a new variable, AnemCat, that categorizes participants as not having anemia or having mild, moderate, or severe anemia according to the following scheme.

Hemoglobin AnemCat Meaning
120 1 No anemia
110 and < 120 2 Mild anemia
80 and < 110 3 Moderate anemia
< 80 4 Severe anemia

Write out the complete SPSS syntax that you would use to accomplish this.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!