R

Calculate point-biserial and biserial correlations using R

When a correlation, usually Person type correlation, is calculated, two variables have to be continuous. But this requirement does not…

11 months ago

Use spread() of dplyr in R to convert long-form dataset into wide-form

dplyr is a package that belongs to tidyverse framework. dplyr allows usage of pipeline structure (%>%), which can chain multiple…

12 months ago

Creating data frames using read.table() and read.csv() in R

R language provides several useful functions for importing delimited files and creating data frames. These delimited files are often stored…

1 year ago

How to create factor variables in R programming

Categorical variables, including nominal and ordinal variables in R programming language are called factor variables. For example, gender(male/female) is nominal,…

1 year ago

Getting started working with R programming language

When R software and RStudio program have been installed on your computer, R working session can be simply started by…

1 year ago

Creating and indexing a list in R

list is a type of data structure in R programming language. Unlike other data structures, especially matrix and vector, in…

1 year ago

Violin plots with ggplot2 in R

Violin plot is quite similar as boxplot, in the sense that it shows the range of the data. And at…

1 year ago

Using t-distribution and t-test with R

A Student t-distributed random variable is modeling the ratio between a standard Normal random variate and square root of a…

1 year ago

Kernel density plots with ggplot2 in R

Kernel density function is a nonparametric method to find the drawing density curve of random samples, and it is often…

1 year ago

Calculating The Power of a Test in Hypothesis Testing with R

In hypothesis testing, the analyst has chance to commit both Type I and Type II errors. The Type I error…

1 year ago