View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Winsorize data

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.75
4.8 | 5 ratings Rate this file 12 Downloads (last 30 days) File Size: 1.36 KB File ID: #14740 Version: 1.0
image thumbnail

Winsorize data

by

 

22 Apr 2007 (Updated )

(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 and Machine Learning Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
MATLAB Search Path
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
23 Jun 2016 Madeline Hayes

This is great. Thanks for sharing!

03 Jun 2011 Roxana Iosif

Thanks a lot, works very well!

03 Jun 2011 Roxana Iosif  
13 Jan 2009 Xing

Xing (view profile)

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

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.

Updates
04 Apr 2016 1.0

BSD

Contact us