apaCorrel.Conditional.Box.Out.Data(X, Y, FromQuantile, ToQuantile)
=apaCorrel.Conditional.Box.Out.Data(X, Y, FromQuantile, ToQuantile)Result
Returns the observations where X is outside a box defined by a lower and an upper quantile.
Syntax
X: data vector (row or column) containing a time series
Y: data vector (row or column) containing a time series, same length as X
FromQuantile: lower quantile of the box as a fraction between 0 and 1 (e.g. 0.25)
ToQuantile: upper quantile of the box as a fraction between 0 and 1 (e.g. 0.75), larger than FromQuantile
Remarks
Observations are selected by X only. Observations are ranked per series (rank 1 = lowest, tied values receive their average rank). An observation is inside the box if FromQuantile x n < rank <= ToQuantile x n, and outside otherwise; FromQuantile must be smaller than ToQuantile and both must lie between 0 and 1. Returns an n x 2 matrix with X in the first and Y in the second column, in the original order; rows that are not selected return #N/A, so the output can be charted directly. X and Y may be row or column vectors and must have the same length n. The selection is identical to the one used by the corresponding apaCorrels.Conditional function.
