Home > Output

Chapter 8: Analysing matched or paired data using R


Figure 8.1 Output for a paired t-test

Figure 8.1 Descritpive statistics for paired t-test

Figure 8.1 Code

Click here to show code with comments

Figure 8.2 Histogram of skewed paired data (a) before and (b) after log transformation with normal distribution curve

Figure 8.2 Figure 8.2

Figure 8.2 Code

Click here to show code with comments

Figure 8.3 Paired t-test with back-transformation

Box 8.5 Descritpive statistics for paired t-test

Figure 8.3 Code

Click here to show code with comments

Figure 8.4 Output for a Wilcoxon matched pairs test

Figure 8.4

Figure 8.4

Click here to show code with comments

Box 8.7 Presenting the findings of the Wilcoxon test for matched pairs

Box 8.7

Box 8.7

Click here to show code with comments

Figure 8.5 Output for a matched case-control analysis

Figure 8.5

Figure 8.5 Code

Click here to show code with comments

Box 8.10 Asthma case-control study

Box 8.10 Presening results of a matched case-control analysis Box 8.10 Presening results of a matched case-control analysis Box 8.10 Presening results of a matched case-control analysis Box 8.10 Presening results of a matched case-control analysis

Box 8.10 Code

Click here to show code with comments

Figure 8.6 Output for McNemar’s test with ratio of paired proportions

Figure 8.6 Output for McNemar's test with ratio of paired proportions

Figure 8.6 Code

Click here to show code with comments