interval {iccTraj} | R Documentation |
Computes the confidence interval for the ICC
Description
Computes the confidence interval for the ICC
Usage
interval(x, conf = 0.95, method = c("EB", "AN", "ZT"))
Arguments
x |
An object of class |
conf |
Numeric. Level of confidence. Default is set to 0.95. |
method |
String. Method used to estimate the confidence interval. Accepted values are **EB** for Empirical Bootstrap, **AN** for asymptotic Normal, and **ZT** for asymptotic Normal using the Z-transformation. |
Details
Let denote the ICC sample estimate and
denote the ICC bootstrap estimates with
. Let
and
be the
and
percentiles of
. The empirical bootstrap confidence interval is then estimated as
.
Asymptotic Normal (AN) interval is obtained as where
denotes the standard deviation of
, and
stands for the
quantile of the standard Normal distribution.
In the ZT approach, the ICC is transformed using Fisher's Z-transformation. Then, the AN approach is applied to the transformed ICC.
Value
A vector with the two boundaries of the confidence interval.
Examples
# Using median Hausdorff distance
Hd<-iccTraj(gull_data,"ID","trip","LONG","LAT","triptime", parallel=FALSE, distance="H")
Hd$est
interval(Hd)