Section author: Ravi Selker, Jonathon Love, Damian Dropmann
Reliability Analysis (reliability
)
Description
Reliability Analysis
Usage
reliability(
data,
vars,
alphaScale = TRUE,
omegaScale = FALSE,
meanScale = FALSE,
sdScale = FALSE,
corPlot = FALSE,
alphaItems = FALSE,
omegaItems = FALSE,
meanItems = FALSE,
sdItems = FALSE,
itemRestCor = FALSE,
revItems = NULL
)
Arguments
|
the data as a data frame |
|
a vector of strings naming the variables of
interest in |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a vector containing strings naming the varibales that are reverse scaled |
Output
A results object containing:
|
a table |
|
a table |
|
an image |
Tables can be converted to data frames with asDF
or
as.data.frame()
. For example:
results$scale$asDF
as.data.frame(results$scale)
Examples
data('iris')
reliability(iris, vars = c('Sepal.Length', 'Sepal.Width', 'Petal.Length', 'Petal.Width'),
omegaScale = TRUE)
#
# RELIABILITY ANALYSIS
#
# Scale Reliability Statistics
# -----------------------------------------
# Cronbach's alpha McDonald's omega
# -----------------------------------------
# scale 0.708 0.848
# -----------------------------------------
#