## create dataset
my_cor <- LikertMakeR::makeCorrAlpha(
items = 4,
alpha = 0.80
)
my_data <- LikertMakeR::makeScales(
n = 64,
means = c(2.75, 3.00, 3.25, 3.50),
sds = c(1.25, 1.50, 1.30, 1.25),
lowerbound = rep(1, 4),
upperbound = rep(5, 4),
cormatrix = my_cor
)
## run function
reliability(my_data)
reliability(
my_data,
include = c("lambda6", "polychoric")
)
# \donttest{
## slower (not run on CRAN checks)
reliability(
my_data,
include = "polychoric",
ci = TRUE,
n_boot = 200
)
# }
Run the code above in your browser using DataLab