TIR: Total-Intra Ratio (TIR)

Description Usage Arguments Value Author(s) See Also Examples

View source: R/TIR.R

Description

Total-Intra Ratio (TIR) is the ratio of MSD(total) and MSD(intra), it compares the total-rater agreement to intra-rater precision.

Usage

1
TIR(data, k, m, testindex, refindex, error, alpha = 0.05)

Arguments

data

Name of your dataset.

k

Number of methods/raters/instruments/assay, etc.

m

Number of replications for each methods/raters/instruments/assay, etc.

testindex

The index for the test raters, it can be a numerical vector or a character value "all". For example, if testindex=c(1,2), the first and second rater are selected as the test raters for calculating TIR.

refindex

The index for the reference raters, it can be a numerical vector or a character value "all". For example, if refindex="all", all raters are selected as the reference raters for calculating TIR.

error

error="const" for the constant error structure for continuous data. error="prop" for the proportional error structure for continuous data. Here, log transformation to data will be applied for the continuous data. For categorical data, use error="const".

alpha

100(1-alpha)

Value

Return a list of values

TIR

The estimator of TIR.

TIR_upper

The upper 1-alpha confidence limit for TIR.

TIR_lower

The lower 1-alpha confidence limit for TIR.

Author(s)

Yue Yu <yyu@imyy.net>

See Also

TIR_IIR, IIR

Examples

1
2
data(DCLHb);
TIR(DCLHb, k=2,m=2,testindex=c(1,2),refindex="all",error="const",alpha=0.05);

Example output

Loading required package: R2HTML
$TIR
[1] 10.09394

$TIR_upper
         [,1]
[1,] 13.65735

$TIR_lower
         [,1]
[1,] 7.460285

Agreement documentation built on May 29, 2017, 3:30 p.m.