Description Usage Arguments Details Value Author(s) References See Also Examples
This function performs reliability analyses, providing coefficient alpha and item statistics.
1 | reliability(items, itemal = TRUE, NA.Delete = TRUE, ml = TRUE)
|
items |
The scored response file with "0" (wrong) and "1" (correct) or Likert type data |
itemal |
If itemal=FALSE (the default) no item analyses are conducted. If itemal=TRUE, the function will provide item means, item total correlations, and alpha if item is removed. |
NA.Delete |
If NA.Delete=TRUE (the default) records are deleted listwise if there are missing responses. If NA.Delete=FALSE all NA values are changed to 0s. |
ml |
A logical variable indicating whether the biserial correlation is calculated using a formal maximum likelihood estimator (default) or an ad hoc estimator. |
The input files must be scored files with "0" and "1" or numeric scales (e.g., Likert Type scales). Only basic scale information is returned to the screen. Use str() to view additional statistics that are available.
nItem |
The number of items |
nPerson |
The sample size used in calculating the values |
alpha |
Crobach's alpha |
scaleMean |
Average total sum socre |
scaleSD |
Standard deviation of total sum score |
alphaIfDeleted |
Cronbach's alpha if the corresponding item were deleted |
pBis |
The item total correlation, with the item's contribution removed from the total |
bis |
The item total biserial (or polyserial) correlation, with the item's contribution removed from the total' |
itemMean |
Average of each item |
John T. Willse, Zhan Shu
Cronbach, L. J. (1951). Coefficient alpha and the internal structure of tests. Psychometika, 16, 297-334.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Scored input (data frame is preferred)
x<-data.frame(matrix(c(0,0,0,0,0,
0,0,0,0,0,
0,0,0,0,1,
0,0,0,1,1,
0,0,1,1,1,
0,1,1,1,1,
1,1,1,1,1,
1,0,1,1,1,
0,0,0,1,1,
0,1,1,1,1),nrow=10,ncol=5,byrow=TRUE,
dimnames=list(c(paste("P",c(1:10),sep="")),c(paste("I",c(1:5),sep="")))))
reliability(x, itemal=TRUE)
# To see more item statisitics
str(reliability(x,itemal=TRUE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.