Home > Output

Chapter 9: Analysing relationships between variables using STATA

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 xx Figure 9.1 xx Figure 9.1 xx

Figure 9.1, Figure 9.2 and Box 9.3 Code

Code for figure

Click here to show code as text

Figure 9.3 Scatterplots for several variables

Figure 9.2 xx

Figure 9.3 Code

Code for figure

Click here to show code as text

Figure 9.4 Calculating several correlations

Figure 9.3 xx

Figure 9.4 Code

Code for figure

Click here to show code as text

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

Figure 9.4 xx Figure 9.4 xx

Figure 9.5 Code

Code for figure

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

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

Click here to show code as text

Figure 9.8 Output for simple regression

Figure 9.7 xx Figure 9.7 xx

Figure 9.8

Code for figure

Click here to show code as text

Box 9.11 Presenting the results for several predictor variables

Box 9.11 xx Box 9.11 xx Box 9.11 xx

Box 9.11 Code

Code for box

Click here to show code as text

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

Box 9.14 xx

Box 9.14 and Figure 9.9 Code

Code for box

Click here to show code as text