Publications by R on Stats and R

Chi-square test of independence in R

26.01.2020

Introduction Example Data Chi-square test of independence Conclusion and interpretation Introduction This article explains how to perform the Chi-square test of independence in R and how to interpret its results. To learn more about how the test works and how to do it by hand, I invite you to read the article “Chi-square test of independence b...

4460 sym R (643 sym/5 pcs) 2 img

Fisher’s exact test in R: independence test for a small sample

27.01.2020

Introduction Hypotheses Example Data Observed frequencies Expected frequencies Fisher’s exact test in R Conclusion and interpretation References Introduction After presenting the Chi-square test of independence by hand and in R, this article focuses on the Fisher’s exact test. Independence tests are used to determine if there is a significa...

5521 sym R (510 sym/3 pcs) 2 img 1 tbl

Fisher’s exact test in R: independence test for a small sample

27.01.2020

Introduction Hypotheses Example Data Observed frequencies Expected frequencies Fisher’s exact test in R Conclusion and interpretation References Introduction After presenting the Chi-square test of independence by hand and in R, this article focuses on the Fisher’s exact test. Independence tests are used to determine if there is a significa...

5524 sym R (510 sym/3 pcs) 1 tbl

Do my data follow a normal distribution? A note on the most widely used distribution and how to test for normality in R

28.01.2020

What is a normal distribution? Empirical rule Parameters Probabilities and standard normal distribution Areas under the normal distribution in R and by hand Ex. 1 In R By hand Ex. 2 In R By hand Ex. 3 In R By hand Ex. 4 In R By hand Ex. 5 Why is the normal distribution so crucial in statistics? How to test the normality assumption Histogram ...

24155 sym R (936 sym/13 pcs) 42 img 1 tbl

Do my data follow a normal distribution ? A note on the most widely used distribution and how to test for normality in R

28.01.2020

What is a normal distribution? Empirical rule Parameters Probabilities and standard normal distribution Areas under the normal distribution in R and by hand Ex. 1 In R By hand Ex. 2 In R By hand Ex. 3 In R By hand Ex. 4 In R By hand Ex. 5 Why is the normal distribution so crucial in statistics? How to test the normality assumption Histogram ...

23211 sym R (858 sym/12 pcs) 38 img 1 tbl

An efficient way to install and load R packages

30.01.2020

What is a R package and how to use it? Inefficient way to install and load R packages More efficient way Most efficient way {pacman} package {librarian} package What is a R package and how to use it? Unlike other programs, only fundamental functionalities come by default with R. You will thus often need to install some “extensions” to perfor...

5821 sym R (1550 sym/4 pcs) 2 img

An efficient way to install and load R packages

30.01.2020

What is a R package and how to use it? Inefficient way to install and load R packages More efficient way What is a R package and how to use it? Unlike other programs, only fundamental functionalities come by default with R. You will thus often need to install some “extensions” to perform the analyses you want. These extensions which are are ...

4387 sym R (1379 sym/2 pcs)

The complete guide to clustering analysis: k-means and hierarchical clustering by hand and in R

12.02.2020

What is clustering analysis? Application 1: Computing distances Solution k-means clustering Application 2: k-means clustering Data kmeans() with 2 groups Quality of a k-means partition nstart for several initial centers and better stability kmeans() with 3 groups Optimal number of clusters Elbow method Silhouette method Gap statistic method NbCl...

41900 sym R (9812 sym/37 pcs) 44 img 16 tbl

The complete guide to clustering analysis: k-means and hierarchical clustering by hand and in R

12.02.2020

What is clustering analysis? Application 1: Computing distances Solution k-means clustering Application 2: k-means clustering Data kmeans() with 2 groups Quality of a k-means partition nstart for several initial centers kmeans() with 3 groups Manual application and verification in R Solution by hand Solution in R Hierarchical clustering Applica...

36665 sym R (6596 sym/29 pcs) 28 img 16 tbl

Getting started in R markdown

17.02.2020

R Markdown: what, why and how? Before you start Components of a .Rmd file YAML header Code chunks Text Code inside text Highlight text like it is code Images Tables Additional notes and useful resources If you have spent some time writing code in R, you probably have heard of generating dynamic reports incorporating R code, R outputs (results)...

17625 sym R (1082 sym/7 pcs) 32 img