Home > freetb4matlab > outliers > dixoninv.m

dixoninv

PURPOSE ^

% Critical values and p-values for Dixon tests

SYNOPSIS ^

function [q]=dixoninv(p, n, type, rev)

DESCRIPTION ^

% Critical values and p-values for Dixon tests
% 
% Description:
% 
%      Approximated quantiles (critical values) and distribution function
%      (giving p-values) for Dixon tests for outliers.
% 
% Usage:
% 
%      [q]=dixoninv(p, n, type, rev) 
% 
% Arguments:
% 
%        p: vector of probabilities. 
% 
%        n: length of sample. 
% 
%     type: integer value: 10, 11, 12, 20, or 21. For description see
%           'dixontest'. 
% 
%      rev: function 'dixoninv' with this parameter set to TRUE acts as
%           'dixoncdf' to omit the repetition of code. 'dixoncdf' is the wrapper.
% 
% Details:
% 
%      This function is based on tabularized Dixon distribution, given by
%      Dixon (1950) and corrected by Rorabacher (1991). Continuity is
%      reached due to smart interpolation using 'qtable' function. By
%      now, numerical procedure to obtain these values for n>3 is not
%      known.
% 
% Value:
% 
%      Critical value or p-value (vector).
% 
% Author(s):
% 
%      Lukasz Komsta, ported from R package 'outliers'.
%    See R News, 6(2):10-13, May 2006
% 
% References:
% 
%      Dixon, W.J. (1950). Analysis of extreme values. Ann. Math. Stat.
%      21, 4, 488-506.
% 
%      Dixon, W.J. (1951). Ratios involving extreme values. Ann. Math.
%      Stat. 22, 1, 68-78.
% 
%      Rorabacher, D.B. (1991). Statistical Treatment for Rejection of
%      Deviant Values: Critical Values of Dixon Q Parameter and Related
%      Subrange Ratios at the 95 percent Confidence Level. Anal. Chem.
%      83, 2, 139-146.
% 
%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003