bootCI | R Documentation |
bootCI
bootCI(data, b = 1000, alpha = 0.05, fun, ...)
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 |
fun |
function to estimate parameter for which the CI is determined. |
... |
additional parameters for function |
named vector with confidence interval levels
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.