R Programming

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…

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

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

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

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

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

2 years ago

Implementing beta distribution in R programming

Beta distribution is a family of distributions which are used to model the probability of continuous random variables defined on…

2 years ago

Create data frame in R using read.table() function

read.table() function in R is often used when a delimited ASCII file (e.g. text file or csv file) is to…

2 years ago

Creating data frames in R using data.frame()

Data frames are the most widely used data structures in R programming. Unlike each element in vector/matrix/array must have same…

2 years ago

Arrays in R programming

When it is needed to store many elements of same type or mode into one data object in R, you…

2 years ago