Learn R Programming

outliers (version 0.15)

qtable: Interpolate tabularized distribution

Description

This function calculates critical values or p-values which cannot be obtained numerically, and only tabularized version is available.

Usage

qtable(p, probs, quants)

Arguments

p

vector of probabilities.

probs

vector of given probabilities.

quants

vector of given corresponding quantiles.

Value

A vector of interpolated values

Details

This function is internal routine used to obtain Grubbs and Dixon critical values. It fits linear or cubical regression to closests values of its argument, then uses obtained function to obtain quantile by interpolation.