interval | R Documentation |
Computes the confidence interval for the ICC
interval(x, conf = 0.95, method = c("BCa", "Perc", "EB", "AN", "ZT"))
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: "BCa" for bias-corrected and accelerated bootstrap, "EB" for empirical bootstrap, "Perc" for percentile bootstrap, "AN" for asymptotic Normal, and "ZT" for asymptotic Normal using the Z-transformation. |
Let \hat{\theta}
denote the ICC sample estimate and \theta_i^{B}
denote the ICC bootstrap estimates with i=1,\ldots,B
. Let \delta_{\alpha/2}^{B}
and \delta_{1-\alpha/2}^{B}
be the \frac{\alpha}{2}
and 1-\frac{\alpha}{2}
percentiles of \delta_{i}^{B}=\theta_i^{B}-\hat{\theta}
.
The percentile bootstrap confidence interval is computed as \hat{\theta}+\delta_{\alpha/2}^{B},\hat{\theta}+\delta_{1-\alpha/2}^{B}
.
The empirical bootstrap confidence interval is estimated as \hat{\theta}-\delta_{1-\alpha/2}^{B},\hat{\theta}-\delta_{\alpha/2}^{B}
Asymptotic Normal (AN) interval is obtained as \hat{\theta} \pm Z_{1-\alpha/2}*SE_B
where SE_B
denotes the standard deviation of \theta_i^{B}
, and Z_{1-\alpha/2}
stands for the 1-\alpha/2
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.
A vector with the two boundaries of the confidence interval.
# Using median Hausdorff distance
Hd<-iccTraj(gull_data,"ID","trip","LONG","LAT","triptime", parallel=FALSE, distance="H")
Hd$est
interval(Hd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.