nan_median Descriptive Statistics nan_percentile

NaN Toolbox >> NaN Toolbox > Descriptive Statistics > nan_moment

nan_moment

estimates the p-th moment

Calling Sequence

M = nan_moment(x, p [,opt] [,DIM])
M = nan_moment(H, p [,opt])

Parameters

p :

moment of order p

opt:

'ac': absolute 'a' and/or central ('c') moment

DEFAULT:

'' raw moments are estimated

DIM:

dimension

1:

STATS of columns

2:

STATS of rows

default or []:

first DIMENSION, with more than 1 element

Description

calculates p-th central moment from data x in dimension DIM of from Histogram H features: - can deal with NaN's (missing values) - dimension argument - compatible to Matlab and Octave

Examples

X = rand(6, 5,'normal');
X(1,1)=%nan;
m = nan_moment(X,3);

See also

Bibliography

http://mathworld.wolfram.com/Moment.html

Authors

nan_median Descriptive Statistics nan_percentile