2. Create the following labels for the variables: income smoker hbefore hafter Household income Smoker or non-smoker Blood levels of H before treatment Blood levels of H after treatment
3. Create the following value labels for the gender variable: 1 = Female 2 = Male 4. The table below shows the data which you have collected from five patients who took part in a pilot study for the clinical trial. Switch to the Data Editor and enter the data on these five patients. Remember to use numeric codes where necessary. Surname ROBBINS MCGREGO R KUMAR ALLINSONHENRY OLDER Gender Female Male Male Female Male Age 32 33 38 51 44 Income 46000 58000 47000 55000 28000 Smoker Nonsmoker Nonsmoker Smoker Nonsmoker Nonsmoker Hbefore 94.58 106.12 88.11 83.62 72.31 Hafter 88.79 78.25 102.45 63.82 77.50
PSU-GS Comp 2
We need to recode some of the data in medicaltrialX.sav (or fixed.sav). The information in the smoker column is coded as text (Y and N). It would be better to code it as numeric data (e.g. 1 and 0), and to use labels to indicate the meaning of these numbers. 1. Use Recode to convert the smoker information into a new variable called smoker1, so that 'Y' becomes 1 and 'N' becomes 0. (Define the label for this new variable as "Smoker or non-smoker") 2. Create value labels for the smoker1 variable so that 1 is displayed as 'Smoker', and 0 is displayed as 'Non-smoker'. 3. Check that the recode has worked properly. If it has, then delete the old variable smoker from your data sheet. 4. Using Recode, create a new variable incband (with label "Income band") to categorise the household income: up to $25,000 as band 1, between $25,000 and $40,000 as band 2, and more than $40,000 as band 3. 5. Save the data file if you are happy with the results of this exercise.
PSU-GS Comp 2
3. Now use the Select cases function to select only the women in the study, and repeat step (2). What do you find? If you have time, repeat the test, selecting men instead of women.
PSU-GS Comp 2
2. Measure the strength of association between income and age with a correlation coefficient and its significance. 3. Measure the strength of association between age and dh with a correlation coefficient and its significance. 4. Produce a scatter plot of dh against age (placing dh on the vertical axis), and: Include a title. Produce a fit line on the graph (Hint: Double-click on the chart to edit it, then click on one of the data points to select the data points, and from the menus choose Chart | Add chart element | Fit line at total).
PSU-GS Comp 2