nice_alpha_table.Rd
Returns a data.frame with item analyses for the provided scales.
nice_alpha_table(
data,
scales,
labels = NULL,
round = 2,
ci = TRUE,
conf_level = 0.95,
check_key = TRUE,
keys = NULL,
keys_from_weights = FALSE,
RMSEA = FALSE,
difficulty = FALSE,
values = NULL,
fa = TRUE
)
alpha_table(
data,
scales,
labels = NULL,
round = 2,
ci = TRUE,
conf_level = 0.95,
check_key = TRUE,
keys = NULL,
keys_from_weights = FALSE,
RMSEA = FALSE,
difficulty = FALSE,
values = NULL,
fa = TRUE
)
A data Frame
A list containing vectors with variable names. Each list element defines one scale. Named list elements are used as labels.
Label names for scales (defaults to named list elements in 'scales').
Rounds values to given decimal position.
If TRUE confidence intervals are calculated.
Confidence level (e.g. 0.95 for 95 percent).
Check_key for the psych::alpha function.
Optional key argument for the psych::alpha function.
If TRUE, tries to define keys from the weights dictionary attribute. These are only available when you defined them with the scaledic package.
If TRUE RMSEA is calculated.
If TRUE, the difficulty of the item is calculated.
Sets maximum and minimum valid values necessary to calculate item difficulty.
If TRUE, a one factor exploratory factor analyses is calculated and loadings are reported.
A data frame with concise scale indices.
## Example needs packages scaledic and purrr installed and active
nice_alpha_table(
data = wmisc:::ex_itrf,
scales = wmisc:::ex_itrf_scales,
labels = c("Inernalizing", "Externalizing"),
keys_from_weights = TRUE,
difficulty = TRUE,
values = list(c(0, 3)),
RMSEA = TRUE
)
#> Error in names(keys) <- colnames(x): 'names' attribute [19] must be the same length as the vector [0]
#>
#> Cautions:
#> 1: Removed 1 rows because all items were missing.
#> 2: Weights from scaledic attributes are missing.
nice_alpha_table(
wmisc:::data_emo,
wmisc:::data_emo_scales,
check_key = TRUE,
difficulty = TRUE,
value = list(c(0,4))
)
Table
Item analysis
items
cases
Raw
Standardized
Note. Values in brackets depict upper and lower bound of confidence intervals or [min,max] intervals. N cases is the min and max number of non-missing cases for the scale items.