How to Find Percentiles Using quantile() in R - Demonstration
Channel: Monika Wahi
Date: 15/04/2022

*Note: I may be compensated, but you will not be charged, if you click on the links below.

In this video, Monika Wahi shows you how to use the quantile() command in R to find percentiles of a continuous variable. See her blog post here: https://buff.ly/3uK49fN 
Files on Github: https://buff.ly/3xF6H27
Data from American Hospital Directory: https://www.ahd.com/ 
Monika’s blog post about box plots: https://buff.ly/3uK49fN 

💡 If you are a public health practitioner looking for a targeted program for enhancing your data science skills, please sign up to participate in my 30-minute market research interview so I can get your feedback: https://buff.ly/3UnLqmq    

WANT TO SUPPORT MONIKA ON SOCIAL MEDIA?
❤️Subscribe to Monika's YouTube channel: https://buff.ly/2W6ijuc   
🧡Follow/connect with Monika on LinkedIn: https://www.linkedin.com/in/dethwench/ 
💛Follow Monika on Twitter: https://twitter.com/PHExaminer 
💚Try Monika’s courses on LinkedIn Learning: https://linkedin-learning.pxf.io/NKN0JO 
💙Try Monika's boutique research methods and data science courses here: https://buff.ly/3zM243P

Timestamps and links as the come up are below:
00:49 Description of the underlying dataframe
01:50 Running quantile() with no options set – just quartiles
03:03 Discussion of probs option
03:44 Running quantile() with probs argument to get 95th and 5th percentiles
04:00 Discussion of holding the probs in a vector
04:25 Running quantile() with probs argument to get 90th and 10th percentiles, using the vector
04:45 Discussion of using a sequence seq() as the probs vector for deciles
05:16 Running quantile() with sequence as vector for deciles
05:43 Saving the output of quantile() deciles in a vector called pctiles
05:51 Why store these options in vectors? Answer: Automation.
06:20 Explanation of how the vector of percentiles can be used in extract-transform-load (ETL) code to make a new variable that classifies the record by decile

How to Find Percentiles Using quantile() in R - Demonstration