|
|
| File Information |
| Description |
R= ALLSTATS(A) returns a structure R with several statistics of vector A. A grouping factor can be given in an optional vector. In that case all the statistics will be calculated per group. The stats calculated (returned as fields of R) are:
R.min= minimum
R.max= maximum
R.mean= mean
R.std= standard deviation
R.mode= mode
R.q2p5= 2.5 percentile
R.q5= 5 percentile
R.q25= 25 percentile
R.q50= 50 percentile (median)
R.q75= 75 percentile
R.q95= 95 percentile
R.q97p5= 97.5 percentile
R.kurt= Kurtosis
R.skew= Skewness
% Example. No groups
x= rand(10,1);
R= allstats(x)
% Example. With 2 groups
g= [1;1;1;1;1;2;2;2;2;2];
R= allstats(x,g)
|
| Required Products |
Statistics Toolbox
|
| MATLAB release |
MATLAB 7.8 (R2009a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 03 Nov 2009 |
Added kurtosis and skewness |
| 04 Nov 2009 |
Clarified help (hopefully). Included some error checking.
|
| 04 Nov 2009 |
Take into account the shape of data and groups vectors |
| 04 Nov 2009 |
avoid output... |
| 21 Jul 2011 |
Calculation of the mode is adapted to discrete variables |
|
Contact us at files@mathworks.com