R Programming

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,…

3 years 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…

3 years 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…

3 years 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…

3 years 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…

3 years 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…

3 years 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…

3 years ago

Calculating Type I Error and Type II Error of Hypothesis Testing using R

In statistical hypothesis testing, there are usually two types of errors that the process will encounter, namely Type I and…

3 years ago

Using Weibull distribution in R programming

Weibull distribution, named after Swedish mathematician Waloddi Weibull, is a continuous distribution which is widely used to model the distribution…

3 years ago

Using Lognormal distributions in R programming

Lognormal distribution in probability and statistics is used to model the distribution of a positive random variable Y, if Y…

3 years ago