BookmarkSubscribeRSS Feed
Saspains
Calcite | Level 5
I have my assignment asking me to find 2.5 percentile and 97.5 percentile. I have tried many syntax but no one is showing output.
My variables are HEIGHT_SIT and WAIST_GRTH
4 REPLIES 4
SASKiwi
PROC Star

Please post your code. PROC UNIVARIATE is one way to do percentiles as in this example: https://documentation.sas.com/?docsetId=procstat&docsetTarget=procstat_univariate_examples08.htm&doc...

Saspains
Calcite | Level 5
proc univariate data=stats.sample noprint;
var HEIGHT_SIT WAIST_GRTH;
output out=PctlStrength p5=p5str p95=p2.5str;
run;
PaigeMiller
Diamond | Level 26
output out=whatever pctlpts=2.5 97.5 pctlpre=p;

FULL explanation and documentation:

https://documentation.sas.com/?docsetId=procstat&docsetTarget=procstat_univariate_syntax21.htm&docse...

 
 
--
Paige Miller
Reeza
Super User

Just a note for the future, if you're using a PROC and cannot find the syntax you need to use or not sure how to use, check the Examples section. In this case, the one titled "Saving percentiles in an output data set" is pretty much exactly what you want.

 

https://documentation.sas.com/?docsetId=procstat&docsetVersion=9.4&docsetTarget=procstat_univariate_...

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1132 views
  • 1 like
  • 4 in conversation