bootCI

bootCI(data, b = 1000, alpha = 0.05, fun, ...)

Arguments

data

data.frame for which the bootstraps need to be performed to obtain confidence intervals.

b

number of bootstrap replications

alpha

level of Confidence interval, default alpha = 0.05

fun

function to estimate parameter for which the CI is determined.

...

additional parameters for function

Value

named vector with confidence interval levels

Examples

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)
}