Help using Base SAS procedures

20th percentile in PROC SUMMARY?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

20th percentile in PROC SUMMARY?

Hi guys

Just wondering whats the term to receive 20th percentile in proc summary? Q1 =25% and Q3=50%, but what is the term for 20th percentile?

I typically use:

PROC SUMMARY PRINT N MEAN STD MEDIAN Min Max MEDIAN Q1 Q3;

  VAR x x1 x2 x3;  run;


Accepted Solutions
Solution
‎07-19-2012 09:17 AM
PROC Star
Posts: 1,088

Re: 20th percentile in PROC SUMMARY?

Good news!

As of SAS 9.3, all of the "mod 10" percentiles have been added to PROC MEANS and SUMMARY!

For 20th percentile, use P20.

Tom

View solution in original post


All Replies
Regular Contributor
Posts: 151

Re: 20th percentile in PROC SUMMARY?

The only percentiles available in Proc Summary are 1,5,10,25,50,75,90,95,99.  To get other percentiles, you need Proc Univariate, use the PCTLPTS option within the OUTPUT statement.

Solution
‎07-19-2012 09:17 AM
PROC Star
Posts: 1,088

Re: 20th percentile in PROC SUMMARY?

Good news!

As of SAS 9.3, all of the "mod 10" percentiles have been added to PROC MEANS and SUMMARY!

For 20th percentile, use P20.

Tom

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 3469 views
  • 5 likes
  • 3 in conversation