apaMoments.Rolling(TimeSeries, Nth, MomentType, WindowSize, DoCalcAllOtherwiseNth)
Excel
=apaMoments.Rolling(TimeSeries, Nth, MomentType, WindowSize, DoCalcAllOtherwiseNth)Result
Calculates rolling moments of various types (raw, central, standardized). Returns population moments (division by n, not n-1). The standardized fourth moment is the kurtosis (not excess kurtosis). The result is a rolling moment series or matrix, depending on the calculation mode.
Syntax
TimeSeries: r x 1 data vector containing a time series
Nth: order of the moment to calculate, e.g. 3 for skewness
MomentType: moment type: 1 = raw, 2 = central, 3 = standardized
WindowSize: size of the rolling data window
DoCalcAllOtherwiseNth: TRUE to calculate the moments of order 1 up to Nth, FALSE to calculate the moment of order Nth only
