bootCI.Rd
bootCI
bootCI(data, b = 1000, alpha = 0.05, fun, ...)
data.frame for which the bootstraps need to be performed to obtain confidence intervals.
number of bootstrap replications
level of Confidence interval, default alpha = 0.05
function to estimate parameter for which the CI is determined.
additional parameters for function
named vector with confidence interval levels
if (FALSE) {
agreement(diagnoses)
bootCI(data = diagnoses, fun = agreement)
agreement(diagnoses, specific = "4. Neurosis")
bootCI(data = diagnoses, fun = agreement, specific = "4. Neurosis")
## bootsctrap CI for SEM agreement
icc(data = breast[,c("PCH1_score", "PCH2_score", "PCH3_score")],
method = "agreement", confint = FALSE)["sem"]
sem_a <- function(x){icc(data = x, method = "agreement", confint = FALSE)["sem"]}
sem_a <- function(x){unlist(icc_agreement(x)["sem"])}
bootCI(data = breast[,c("PCH1_score", "PCH2_score", "PCH3_score")],
fun = sem_a)
}