qn.m

% -------------------------------------------------------------------------
% Function: s=qn(X)
% -------------------------------------------------------------------------
% Aim:
% Computing QN - scale estimator
% -------------------------------------------------------------------------
% Input:  
% X, matrix (n,p), data 
% -------------------------------------------------------------------------
% Output: 
% s, vector (1,p) containing the Qn scale estimates of the columns of X
% -------------------------------------------------------------------------
% Example:
% s=qn(X)
% -------------------------------------------------------------------------
% Reference:
% P.J. Rousseeuw, C. Croux, Alternatives to the median absolute deviation, 
% Journal of American Statististical Association 88 (1993) 1273-1283
Valid CSS! Valid HTML 4.01!