No BSD License  

Highlights from
Winsorize data

4.66667

4.7 | 4 ratings Rate this file 3 Downloads (last 30 days) File Size: 1.36 KB File ID: #14740
image thumbnail

Winsorize data

by Dimitri Shvorob

 

22 Apr 2007 (Updated 23 Apr 2007)

(using PRCTILE)

| Watch this File

File Information
Description

Function WINSOR inputs data vector x and 2*1 vector of cut-off percentiles p, and replaces non-NaN values of x that are below percentile p(1) with the smallest remaining value, and x-values above percentile p(2) with the largest remaining value. Percentiles are computed with PRCTILE of Statistics Toolbox.

Required Products Statistics Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
23 Apr 2007 John D'Errico

A simple tool, but it has everything that any good code should. Good help, an example, an H1 line, complete error checks, it is vectorized, etc.

13 Jan 2009 Xing

Thank you! Very helpful.
If it can do winsorize by group that would be better!

03 Jun 2011 Roxana Iosif  
03 Jun 2011 Roxana Iosif

Thanks a lot, works very well!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Dimitri Shvorob 22 Oct 2008 09:10:06
probability Dimitri Shvorob 22 Oct 2008 09:10:06
winsorize Dimitri Shvorob 22 Oct 2008 09:10:06
nan Dimitri Shvorob 22 Oct 2008 09:10:06
percentiles Dimitri Shvorob 22 Oct 2008 09:10:06
data Dimitri Shvorob 22 Oct 2008 09:10:06
winsorize Xing 13 Jan 2009 15:16:19

Contact us at files@mathworks.com