R StatisticsLesson 33Free preview
R Percentiles
This lesson is part of R · All levels
Summary
This study reviews the percentiles and quartiles in the analysis of the distribution of statistical data in R. The percentage divides the data into a hundred equal parts, while the quartile divides it into four parts (Q1 at 25%, Q2/median at 50%, and Q3 at 75%). The function quantile() in R gives full control in calculating this percentage point.
Key points
- The percentage indicates the relative position of a value over the overall distribution of data
- The 'quantile(x)' function by default produces a quartic summary (0%, 25%, 50%, 75%, 100%)
- The 'probs' argument is used to determine a specific percentage point (e.g.: probs = c(0.1, 0.9))
- Interquartile Range (IQR) is calculated using the 'IQR(x)' function to identify outliers
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.