Most of the statistical functionalities in base R are collected in the stats package.
It provides simple functions which compute descriptive measures and facilitate computations involving a variety of probability distributions.
stats is part of the base distribution of R (installed by default). No need to run install.packages(“stats”) or library(“stats”). View library as follows:
library(help = "stats")
- Let’s refresh some core concepts of probability theory using R (drawing random numbers, how to compute densities, probabilities, quantiles and alike).