Home > Output

Chapter 9: Analysing relationships between variables using SAS

Figure 9.1 Scatterplot for two variables

Figure 9.2 Output for Pearson’s correlation

Box 9.3 Presenting the results for Pearson’s correlation

Figure 9.1 xx

Figure 9.1, Figure 9.2 and Box 9.3 Code

Code for figure 9.1

Click here to show code as text

Figure 9.3 Scatterplots for several variables

Figure 9.3 Scatterplots for several variables

Code Figure 9.3

Code for figure 9.3

Click here to show code as text

Figure 9.4 Calculating several correlations

Box 9.5 Presenting correlations between several variables

Figure 9.4 Calculating several correlations

Code Figure 9.4 and Box 9.5

Code for figure 9.4

Click here to show code as text

Figure 9.5 Presenting scatterplots (a) with skewed data and (b) where data are transformed

Figure 9.5 xx

Figure 9.5 Code

Code for figure 9.5

Click here to show code as text

Figure 9.6 Output for a rank test

Figure 9.5 xx

Figure 9.6 Code

Code for figure 9.5

Click here to show code as text

Figure 9.7 Scatterplot of two variables with linear regression line

Figure 9.6 xx

Figure 9.7 Code

Code for figure 9.6

Click here to show code as text

Figure 9.8 Output for simple regression

Figure 9.8 Output for simple regression

Figure 9.8 Code

Code for figure 9.7

Click here to show code as text

Box 9.11 Presenting the results for several predictor variables

Box 9.11 xx

Box 9.11 Code

Code for box 9.11

Click here to show code as text

Box 9.13 Presenting the results of a regression model that uses a log transformation of the outcome variable

Box 9.13 xx

Box 9.13 Code

Code for box 9.13

SAS can not easily produce this output

Box 9.14 Presentation of a regression line used for prediction

Figure 9.9 Scatterplot of two variables with linear regression line and 95% confidence intervals

Figure 9.9 Scatterplot of two variables with linear regression line and 95% confidence intervals

Box 9.14 and Figure 9.9 Code

Code for box 9.14

Click here to show code as text