Solved
N/A
Posts: 0

# Quintiles!

Hi everybody,
-I want to get my sample divided into 5 quintiles based on the variable "v1".
Can you help me in this?
Cheers, Malek

Accepted Solutions
Solution
‎06-02-2017 09:06 AM
Posts: 3,805

## Re: Quintiles!

[ Edited ]
``````proc rank data=sashelp.class out=quintiles groups=5;
var weight;
ranks q;
run;
proc print;
run;
``````

What if I needed to trim for the outliers (1%) before ranking for the quintiles?

@Paige answered: Proc Rank or Proc Univariate can inform you which data points are in the top or bottom 1%.

All Replies
Solution
‎06-02-2017 09:06 AM
Posts: 3,805

## Re: Quintiles!

[ Edited ]
``````proc rank data=sashelp.class out=quintiles groups=5;
var weight;
ranks q;
run;
proc print;
run;
``````

What if I needed to trim for the outliers (1%) before ranking for the quintiles?

@Paige answered: Proc Rank or Proc Univariate can inform you which data points are in the top or bottom 1%.

N/A
Posts: 0

## Re: Quintiles!

What if I needed to trim for the outliers (1%) before ranking for the quintiles?
Super Contributor
Posts: 281