Statistics[Trim] - trim data set
Statistics[Winsorize] - winsorize data set
|
Calling Sequence
|
|
Trim(X, l, u)
Winsorize(X, l, u)
|
|
Parameters
|
|
X
|
-
|
rtable; data sample
|
l
|
-
|
numeric; lower percentile
|
u
|
-
|
numeric; upper percentile
|
|
|
|
|
Description
|
|
•
|
The Trim and Winsorize commands can be used to eliminate extreme points in a data set.
|
•
|
The Trim command return all points from X between lth and uth percentiles.
|
•
|
The Winsorize command is similar to Trim except that the extreme points in X are replaced with the values of the lth or the uth percentile (whichever is closer).
|
•
|
The first parameter X is the data set, which must be a one-dimensional rtable (e.g. Array or Vector).
|
•
|
The second parameter l is the lower percentile, the third parameter u is the upper percentile. Note, that both l and u must be numeric constants between 0 and 100. A common choice for l and u is 5 and 95 respectively.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?