Skip to content

Commit

Permalink
Update summary-stats.qmd
Browse files Browse the repository at this point in the history
update the title as per issue and add in the 4 quantiles
  • Loading branch information
alanahjonas95 committed Oct 21, 2024
1 parent 7a64dc1 commit a856acb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SAS/summary-stats.qmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
title: "Deriving Quantiles or Percentiles in SAS"
title: "Calculating Quantiles (percentiles) in SAS"
---

Percentiles can be calculated in SAS using the UNIVARIATE procedure. The procedure has the option `PCTLDEF` which allows for five different percentile definitions to be used. The default is `PCTLDEF=5`, which uses the empirical distribution function to find percentiles.

This is how the 25th and 40th percentiles of `aval` in the dataset `adlb` could be calculated, using the default option for `PCTLDEF`.
For quantiles, Q1= 25%, Q2=50%, Q3 = 75%, Q4=100%.

```{r, eval=FALSE}
proc univariate data=adlb;
Expand Down

0 comments on commit a856acb

Please sign in to comment.