apaReturns.Rolling.NumberOfWindows(nObs, WindowSize, IsNoOverlap)
Excel
=apaReturns.Rolling.NumberOfWindows(nObs, WindowSize, IsNoOverlap)Result
Determines the number of rolling windows which can be calculated.
Syntax
nObs: number of observations in the data
WindowSize: number of observations in the window
IsNoOverlap: FALSE for overlapping windows, TRUE for non-overlapping rolling windows
Algorithm
For non-overlapping windows, the number of windows equals INT(nObs / WindowSize). For overlapping windows, it equals nObs − WindowSize + 1 (at least zero).
Remarks
The function is volatile.
