Click Then. From the Variables folder (on the left of the original screen), click Assign. The ASSIGN dialog box opens. From the Assign Variable drop-down, select and use the buttons to make it equal to ‘Bedshare_LR’, ‘1’. Your Dialogue box should look like this (below). ADD. The ASSIGN dialogue box closes and the IF dialogue box reappears. ELSE. You are then taken to the Variables folder on the left of the screen. Click on ASSIGN. Choose the variable Bedshare_LR from the Assign Variable drop down menu and make it equal to 0. The dialogue box should look like this (below). Click ADD. You should now be returned to the If dialogue box (below). Check that if BEDAHRE=1, then Bedshare_LR=1 (under THEN ); and ELSE (ie. BEDSHARE=2) that Bedshare_LR = 0. Use the TABLES command to that you have correctly converted BEDSHARE into Bedshare_LR. CREATING THE DUMMY VARIABLES FOR ETHNICITY You will now convert the variable ETHNIC into two dummy variables called Maori and Pacific, which will have the values shown in the table below. For the variable Maori, Maori =1, and Pacific or European = 0. For the variable Pacific, Pacific =1, and Maori or European = 0. is no variable for European as they are by default the reference, so that the odds ratios calculated for Maori and Pacific will have European infants as the reference group. Existing Variable New Variables ETHNIC Maori Pacific Maori (=1) 1 0 Pacific (=2) 0 1 European (=3) 0 0
Click Then. From the Variables folder (on the left of the original screen), click Assign. The ASSIGN dialog box opens. From the Assign Variable drop-down, select ‘Bedshare_LR’, and use the buttons to make it equal to ‘1’. Your Dialogue box should look like this (below). ADD. The ASSIGN dialogue box closes and the IF dialogue box reappears. ELSE. You are then taken to the Variables folder on the left of the screen. Click on ASSIGN. Choose the variable Bedshare_LR from the Assign Variable drop down menu and make it equal to 0. The dialogue box should look like this (below). Click ADD. You should now be returned to the If dialogue box (below). Check that if BEDAHRE=1, then Bedshare_LR=1 (under THEN ); and ELSE (ie. BEDSHARE=2) that Bedshare_LR = 0. Use the TABLES command to that you have correctly converted BEDSHARE into Bedshare_LR. CREATING THE DUMMY VARIABLES FOR ETHNICITY You will now convert the variable ETHNIC into two dummy variables called Maori and Pacific, which will have the values shown in the table below. For the variable Maori, Maori =1, and Pacific or European = 0. For the variable Pacific, Pacific =1, and Maori or European = 0. is no variable for European as they are by default the reference, so that the odds ratios calculated for Maori and Pacific will have European infants as the reference group. Existing Variable New Variables ETHNIC Maori Pacific Maori (=1) 1 0 Pacific (=2) 0 1 European (=3) 0 0
2011_tutorial_guide.docx