Home   >   User Resources   >   Online Help   >   apaCorrel.Conditional.Box.Out.Joint.Data
 

 

Function index Version 3.0.0

apaCorrel.Conditional.Box.Out.Joint.Data(X, Y, FromQuantile, ToQuantile)

Excel=apaCorrel.Conditional.Box.Out.Joint.Data(X, Y, FromQuantile, ToQuantile)

Result

Returns the observations where at least one of X and Y 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

An observation is selected if at least one of X and Y is outside the box. 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.