BookmarkSubscribeRSS Feed
federicamazetta
Calcite | Level 5

dear SAS community,

i hope i can describe what my question is.

 

i’ve been trying to analyze a sample through percentiles.

 

i’ve used the tool “statistiche di riepilogo” which translated could be something like “summary statistics”.

 

in option, i can tick 1. 10, 25, 50, 75, 95, 99 percentile.

but i want 15!

 

anyone can help?

 

i’ve already tried to change the codes but, when i write p15 it  reports me this p15 as an error.

Looking forward to hearing from you!

 

federica

1 REPLY 1
GinaRepole
SAS Employee

When using the "statistiche di riepilogo" you will be automatically generating PROC MEANS code. Unfortunately, PROC MEANS does not support custom percentiles as you're asking for. You can, however, use some other procedures such as PROC UNIVARIATE or PROC STDIZE. I recommend PROC STDIZE but you can see examples of both used in this blog post.

 

Here's a [slightly modified] snippet of code running the STDIZE procedure as you are looking for.

proc stdize data=sashelp.cars PctlMtd=ORD_STAT outstat=StdLongPctls
           pctlpts=15;
var mpg_city mpg_highway;
run;
 
proc print data=StdLongPctls noobs;
where _type_ =: 'P';
run;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1085 views
  • 3 likes
  • 2 in conversation