# All Common Statistics 1.0

OS : Windows / Linux / Mac OS / BSD / Solaris

Script Licensing : Freeware

Created : Sep 13, 2007

Downloads : 2

Thank you for voting...

## S = ALLSTATS(X,DIM,Flag) returns common statistics of ...

S = ALLSTATS(X, dim, flag) returns common statistics of the data in X along the dimension DIM, with the variance type specified by Flag.

X must be non-sparse, real, single or double, and 2D. NaNs contained in X are consdered missing data and are ignored in computations.

Note that when X contains NaNs, this function will return different results than those returned by the standard MATLAB functions MEAN, MEDIAN, and MODE, STD and VAR because these function do not ignore NaNs.

If DIM is [] or not given, DIM is the first non-singleton dimension of X.

If Flag = 0 or is not given, the variance is normalized by N-1.

If Flag = 1, the variance is normalized by N.

S = ALLSTATS(X, DIM, Flag, P) in addition returns the additional percentiles in vector P. P must contain numerical values between 0 and 100 exclusive. Flag must be specified in this case.

S. min = minimum

S. q1 = 25th percentile

S. median = median (50th percentile)

S. q3 = 75th percentile

S. max = maximum

S. mode = mode

S. mean = mean

S. std = standard deviation

S. var = variance

S. skew = skewness

S. kurt = kurtosis (= 3 for Gaussian or Normal Data)

S. p01 = first optional percentile

S. p02 = second optional percentile, etc.

For vector data, outputs are scalars.

For matrix data, outputs are row vectors for DIM=1 and column vectors for DIM=2.

X must be non-sparse, real, single or double, and 2D. NaNs contained in X are consdered missing data and are ignored in computations.

Note that when X contains NaNs, this function will return different results than those returned by the standard MATLAB functions MEAN, MEDIAN, and MODE, STD and VAR because these function do not ignore NaNs.

If DIM is [] or not given, DIM is the first non-singleton dimension of X.

If Flag = 0 or is not given, the variance is normalized by N-1.

If Flag = 1, the variance is normalized by N.

S = ALLSTATS(X, DIM, Flag, P) in addition returns the additional percentiles in vector P. P must contain numerical values between 0 and 100 exclusive. Flag must be specified in this case.

**The output S is a structure containing the statistics with field names describing the respective statistics:**

S. n = number of observations (excluding NaNs)S. min = minimum

S. q1 = 25th percentile

S. median = median (50th percentile)

S. q3 = 75th percentile

S. max = maximum

S. mode = mode

S. mean = mean

S. std = standard deviation

S. var = variance

S. skew = skewness

S. kurt = kurtosis (= 3 for Gaussian or Normal Data)

S. p01 = first optional percentile

S. p02 = second optional percentile, etc.

For vector data, outputs are scalars.

For matrix data, outputs are row vectors for DIM=1 and column vectors for DIM=2.

**• MATLAB Release: R14SP3**

**Demands:****All Common Statistics 1.0 scripting tags:**probability, common, data, flag, statistics, statistics probability, all common statistics, common probability, variance, dim.

**What is new in All Common Statistics 1.0 software script?**- Unable to find All Common Statistics 1.0 news.

**What is improvements are expecting?**Newly-made All Common Statistics 1.1 will be downloaded from here. You may download directly. Please write the reviews of the All Common Statistics. License limitations are unspecified.