Title: | Robust Coefficient Alpha and Omega with Missing and Non-Normal Data |
---|---|
Description: | Cronbach's alpha and McDonald's omega are widely used reliability or internal consistency measures in social, behavioral and education sciences. Alpha is reported in nearly every study that involves measuring a construct through multiple test items. The package 'coefficientalpha' calculates coefficient alpha and coefficient omega with missing data and non-normal data. Robust standard errors and confidence intervals are also provided. A test is also available to test the tau-equivalent and homogeneous assumptions. Since Version 0.5, the bootstrap confidence intervals were added. |
Authors: | Zhiyong Zhang and Ke-Hai Yuan |
Maintainer: | Zhiyong Zhang <[email protected]> |
License: | GPL |
Version: | 0.7.2 |
Built: | 2025-02-02 05:41:05 UTC |
Source: | https://github.com/cran/coefficientalpha |
Cronbach's alpha and McDonald's omega are widely used reliability or internal consistency measures in social, behavioral and education sciences. Alpha is reported in nearly every study that involves measuring a construct through multiple test items. The package 'coefficientalpha' calculates coefficient alpha and coefficient omega with missing data and non-normal data. Robust standard errors and confidence intervals are also provided. A test is also available to test the tau-equivalent and homogeneous assumptions. Since Version 0.5, the bootstrap confidence intervals were added.
Package: | coefficientalpha |
Type: | Package |
License: | GPL |
Zhiyong Zhang and Ke-Hai Yuan Maintainer: Zhiyong Zhang <[email protected]>
Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.
Calculate alpha or omega for a given data set.
alpha(y, varphi = 0.1, se = FALSE, test = TRUE, complete =FALSE, auxiliary = NULL, drop, silent = TRUE) omega(y, varphi = 0.1, se = FALSE, test = TRUE, complete =FALSE, auxiliary = NULL, drop, silent = TRUE)
alpha(y, varphi = 0.1, se = FALSE, test = TRUE, complete =FALSE, auxiliary = NULL, drop, silent = TRUE) omega(y, varphi = 0.1, se = FALSE, test = TRUE, complete =FALSE, auxiliary = NULL, drop, silent = TRUE)
y |
Data |
varphi |
Downweight rate |
se |
Whether to estimate standard error. It might take significant more time if se is requested with many items. |
test |
Whether to test the assumption of alpha (tau equivalent test) or omega (homogeneous test). |
complete |
Calculate alpha/omega only based on complete data (listwise deletion) |
auxiliary |
Provide a matrix or data frame of auxiliary variables for missing data analysis. |
drop |
The row number of cases to be dropped from the analysis. |
silent |
Whether to print information of the analysis. |
Zhiyong Zhang and Ke-Hai Yuan
Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.
data(example) alpha(example, varphi=.01) omega(example, varphi=.01)
data(example) alpha(example, varphi=.01) omega(example, varphi=.01)
Bootstrap se and CI for alpha and omega.
bootstrap(y, type="omega", alpha=.95, nboot=1000, ci="bc", plot=FALSE, varphi=0, complete=FALSE, auxiliary=NULL, silent=FALSE)
bootstrap(y, type="omega", alpha=.95, nboot=1000, ci="bc", plot=FALSE, varphi=0, complete=FALSE, auxiliary=NULL, silent=FALSE)
y |
Data |
type |
|
alpha |
Confidence level. |
nboot |
Number of bootstrap samples to use |
ci |
|
plot |
Whether to plot the bootstrap density. |
varphi |
Downweight rate |
complete |
Calculate alpha/omega only based on complete data (listwise deletion) |
auxiliary |
Provide a matrix or data frame of auxiliary variables for missing data analysis. |
silent |
Whether to print information of the analysis. |
Zhiyong Zhang and Ke-Hai Yuan
Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.
data(example) boot.test<-bootstrap(example, type='alpha', nboot=10, plot=TRUE)
data(example) boot.test<-bootstrap(example, type='alpha', nboot=10, plot=TRUE)
An example data set with 10 variables.
data(example)
data(example)
Generate plot related to alpha or omega. Three plot can be generated. (1) The weight plot will plot the weight associated with alpha calculation. (2) Profile plot will plot the cases with smallest weights and the average value. (3) The diagnostic plot plots the alpha according to different values of the tuning parameter.
## S3 method for class 'alpha' plot(x, type="weight", profile=5, interval=0.01, center=TRUE, scale=FALSE, w1=FALSE, numbered=FALSE, pos="topright",...) ## S3 method for class 'omega' plot(x, type="weight", profile=5, interval=0.01, center=TRUE, scale=FALSE, w1=FALSE, numbered=FALSE, pos="topright",...)
## S3 method for class 'alpha' plot(x, type="weight", profile=5, interval=0.01, center=TRUE, scale=FALSE, w1=FALSE, numbered=FALSE, pos="topright",...) ## S3 method for class 'omega' plot(x, type="weight", profile=5, interval=0.01, center=TRUE, scale=FALSE, w1=FALSE, numbered=FALSE, pos="topright",...)
x |
|
type |
Three types of plots can be generated. |
profile |
Number of cases used on the profile plot. At most 10. |
interval |
The interval used in the diagnostic plot. The default is 0.01. |
center |
Whether to center the data in the profile plot. |
scale |
Whether to scale the data using variance parameters in the profile plot. |
w1 |
Whether to plot the weight for means |
numbered |
Whether to number the profile plot |
pos |
Position of legend. If pos=NULL, no legend is plotted. |
... |
Options can be passed to the |
Zhiyong Zhang and Ke-Hai Yuan
Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.
data(example) res<-alpha(example, varphi=.01) ## diagnostic plot plot(res, type='d') ## alpha with varphi=.01 & standard error res<-alpha(example, varphi=.01, se=TRUE) ## confidence interval summary(res) ## weight plot plot(res) # or plot(res, type='w') ## profile plot plot(res, type='p')
data(example) res<-alpha(example, varphi=.01) ## diagnostic plot plot(res, type='d') ## alpha with varphi=.01 & standard error res<-alpha(example, varphi=.01, se=TRUE) ## confidence interval summary(res) ## weight plot plot(res) # or plot(res, type='w') ## profile plot plot(res, type='p')
Print alpha/omega and its confidence interval.
## S3 method for class 'alpha' summary(object, type = "raw", prob = 0.95,...) ## S3 method for class 'omega' summary(object, type = "raw", prob = 0.95,...)
## S3 method for class 'alpha' summary(object, type = "raw", prob = 0.95,...) ## S3 method for class 'omega' summary(object, type = "raw", prob = 0.95,...)
object |
|
type |
If not |
prob |
Alpha level for confidence interval. By default, the 95 |
... |
Option can be passed to the summary function. |
Zhiyong Zhang and Ke-Hai Yuan
Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.
data(example) res<-alpha(example, varphi=.01) ## diagnostic plot plot(res, type='d') ## alpha with varphi=.01 & standard error res<-alpha(example, varphi=.01, se=TRUE) ## confidence interval summary(res)
data(example) res<-alpha(example, varphi=.01) ## diagnostic plot plot(res, type='d') ## alpha with varphi=.01 & standard error res<-alpha(example, varphi=.01, se=TRUE) ## confidence interval summary(res)
Calculate alpha or omega for a given data set.
tau.test(y, varphi = 0.1, complete = FALSE, drop)
tau.test(y, varphi = 0.1, complete = FALSE, drop)
y |
Data |
varphi |
Downweight rate |
complete |
Calculate alpha/omega only based on complete data (listwise deletion) |
drop |
The row number of cases to be dropped from the analysis. |
Zhiyong Zhang and Ke-Hai Yuan
Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.
data(example) tau.test(example)
data(example) tau.test(example)