Articles by R on Stats and R

Student’s t-test in R and by hand: how to compare two groups under different scenarios

February 27, 2020 | R on Stats and R

Introduction Null and alternative hypothesis Hypothesis testing Different versions of the Student’s t-test How to compute Student’s t-test by hand? Scenario 1: Independent samples with 2 known variances Scenario 2: Independent samples with 2 equal but unknown variances Scenario 3: Independent samples with 2 unequal and unknown variances Scenario 4: Paired samples where the variance ...
[Read more...]

Getting started in R markdown

February 17, 2020 | R on Stats and R

R Markdown: what, why and how? Before you start Components of a .Rmd file YAML header Code chunks Text Code inside text Images Tables Additional notes and useful resources Photo by Jon Tyson If you have spent some time writing code in R, you probably have heard of generating dynamic ...
[Read more...]

Getting started in R markdown

February 17, 2020 | R on Stats and R

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 cod...
[Read more...]

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

February 12, 2020 | R on Stats and R

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 Application 3: hierarchical clustering Data Solution by ...
[Read more...]

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

February 12, 2020 | R on Stats and R

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 NbClust() Visualizations Manual application and verification ...
[Read more...]

Chi-square test of independence in R

January 26, 2020 | R on Stats and R

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 ...
[Read more...]

Chi-square test of independence in R

January 26, 2020 | R on Stats and R

Introduction Data Chi-square test of independence in R Conclusion and interpretation Combination of plot and statistical test Introduction This article explains how to perform the Chi-square test of independence in R and how to interpret its r...
[Read more...]

RStudio addins, or how to make your coding life easier

January 25, 2020 | R on Stats and R

What are RStudio addins? Installation Addins Esquisse Questionr Recoding factors Reordering factors Categorize a numeric variable Remedy Styler Snakecaser Blogdown What are RStudio addins? Although I have been using RStudio for several years, I only recently discovered RStudio addins. Since then, I am using these addins almost every time I ...
[Read more...]

How to create a timeline of your CV in R

January 25, 2020 | R on Stats and R

Introduction Minimal reproducible example How to personalize it Introduction In this article, I show how to create a timeline of your CV in R. A CV timeline illustrates key information about your education, work experiences and extra activities. The main advantage of CV timelines compared to regular CV is that ...
[Read more...]

Descriptive statistics in R

January 21, 2020 | R on Stats and R

Introduction Data Minimum and maximum Range Mean Median First and third quartile Other quantiles Interquartile range Standard deviation and variance Summary Coefficient of variation Mode Contingency table Barplot Histogram Boxplot Scatterplot QQ-plot For a single variable By groups Density plot Introduction This article explains how to compute the main descriptive ...
[Read more...]
1 2 3 4

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)