Data Analysis

You’ll find here some R notebooks I made to remind me of good practices in statistical analysis, data manipulation and data visualization. I share them in the hope that they will be useful to you too, fellow apprentice statistician.

Association between two independent nominal variables

Is there an association between two nominal variables?

Pearson’s Chi-squared test, Fisher’s Exact Test

Distribution follows a theoretical distribution

Is the distribution of subjects in different categories faithful to a theoretical distribution?

Chi-squared test for given probabilities

Mean differ from a value

Does the population mean or median differ from a predefined value?

One Sample t-test, Wilcoxon signed rank test

Means differ in two independant groups

Do these two groups differ?

Two Sample t-test, Welch Two Sample t-test

Means differ in two paired groups

Is this treatment effective?

Paired t-test, Wilcoxon signed rank test