jmv

Reliability Analysis

Reliability Analysis

Example usage

data('iris')

reliability(iris, vars = c('Sepal.Length', 'Sepal.Width', 'Petal.Length', 'Petal.Width'),
            omegaScale = TRUE)

#
#  RELIABILITY ANALYSIS
#
#  Scale Reliability Statistics
#  ─────────────────────────────────────────
#             Cronbach's α    McDonald's ω
#  ─────────────────────────────────────────
#    scale           0.708           0.848
#  ─────────────────────────────────────────
#

Arguments

data the data as a data frame
vars a vector of strings naming the variables of interest in data
alphaScale TRUE (default) or FALSE, provide Cronbach's α
omegaScale TRUE or FALSE (default), provide McDonald's ω
meanScale TRUE or FALSE (default), provide the mean
sdScale TRUE or FALSE (default), provide the standard deviation
corPlot TRUE or FALSE (default), provide a correlation plot
alphaItems TRUE or FALSE (default), provide what the Cronbach's α would be if the item was dropped
omegaItems TRUE or FALSE (default), provide what the McDonald's ω would be if the item was dropped
meanItems TRUE or FALSE (default), provide item means
sdItems TRUE or FALSE (default), provide item standard deviations
itemRestCor TRUE or FALSE (default), provide item-rest correlations
revItems a vector containing strings naming the varibales that are reverse scaled

Returns

A results object containing:

results$scale a table
results$items a table
results$corPlot 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)