TDI: Compute Lin's Total deviation index

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

This index calculates a value such that a certain fraction of difference between methods will be numerically smaller than this.

Usage

1
TDI( y1, y2, p = 0.05, boot = 1000, alpha = 0.05 )

Arguments

y1

Measurements by one method.

y2

Measurements by the other method

p

The fraction of items with differences numerically exceeding the TDI

boot

If numerical, this is the number of bootstraps. If FALSE no confidence interval for the TDI is produced.

alpha

1 - confidende degree.

Details

If boot==FALSE a single number, the TDI is returned. If boot is a number, the median and the 1-alpha/2 central interval based on boot resamples are returned too, in a named vector of length 4.

Value

A list with 3 components. The names of the list are preceeded by the criterion percentage, i.e. the percentage of the population that the TDI is devised to catch.

TDI

The numerically computed value for the TDI. If boot is numeric, a vector of median and a bootstrap c.i. is appended.

TDI

The approximate value of the TDI

Limits of Agreement

Limits of agreement

Note

The TDI is a measure which esentially is a number K such that the interval [-K,K] contains the limits of agreement.

Author(s)

Bendix Carstensen, bxc@steno.dk

References

LI Lin: Total deviation index for measuring individual agreement with applications in laboratory performance and bioequivalence, Statistics in Medicine, 19, 255-270 (2000)

See Also

BA.plot,corr.measures

Examples

1
2
3
data(plvol)
pw <- to.wide(plvol)
with(pw,TDI(Hurley,Nadler))

Example output

Loading required package: nlme
$`95% TDI`
(approximate)     (numeric)           50%          2.5%         97.5% 
     18.75535      13.21507      18.78031      17.77321      19.72793 

$`95% Limits of Agreement`
     lower      upper 
-13.972252  -4.553001 

There were 50 or more warnings (use warnings() to see the first 50)

MethComp documentation built on May 2, 2019, 5:06 p.m.

Related to TDI in MethComp...