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_...

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 771 views
  • 1 like
  • 4 in conversation