Print, format, and summarize an item analysis
Source:R/print.efa_item_analysis.R
print.efa_item_analysis.Rdprint() shows the reliability, the model fit, and the item table of each scale (see
efa_item_analysis()). summary() adds the chi-square test, the largest residual
correlation, the standardized alpha, and for each item the number of values and the share
of missing values. format() returns the same lines as a character vector.
Usage
# S3 method for class 'efa_item_analysis'
print(x, digits = 2, ...)
# S3 method for class 'efa_item_analysis'
format(x, digits = 2, ...)
# S3 method for class 'efa_item_analysis'
summary(object, ...)
# S3 method for class 'summary.efa_item_analysis'
print(x, digits = 2, ...)
# S3 method for class 'summary.efa_item_analysis'
format(x, digits = 2, ...)Value
print() returns its argument x invisibly. format() returns a character
vector with the report lines. summary() returns an object of class
summary.efa_item_analysis, which prints the full report.
See also
Other reliability coefficients:
efa_item_analysis(),
efa_reliability(),
efa_schmid_leiman(),
print.efa_reliability()
Examples
set.seed(1)
f <- rnorm(200)
items <- sapply(c(.8, .7, .6, .5), function(l) round(3 + l * f + rnorm(200, sd = .7)))
colnames(items) <- paste0("i", 1:4)
ia <- efa_item_analysis(items)
ia
#>
#> ── Item analysis ───────────────────────────────────────────────────────────────
#>
#> 4 items, N = 200. No missing values.
#> One-factor model (ML): CFI 1.00, RMSEA .00, SRMR .01.
#>
#> Reliability of the sum of raw scores: omega .71, alpha .71
#>
#> mean sd loading item-rest omega_del alpha_del
#> i1 3.08 1.04 .72 .56 .61 .60
#> i2 2.96 1.04 .63 .51 .65 .64
#> i3 2.90 1.01 .57 .47 .67 .66
#> i4 3.02 0.90 .54 .44 .68 .68
#>
#> omega_del, alpha_del: omega and alpha of the scale without the item.
summary(ia)
#>
#> ── Item analysis ───────────────────────────────────────────────────────────────
#>
#> 4 items, N = 200. No missing values.
#> One-factor model (ML): CFI 1.00, RMSEA .00, SRMR .01.
#> Chi-square = 0.33, df = 2, p = .848; TLI 1.04.
#> Largest residual correlation: -.02 (i2, i4).
#>
#> Reliability of the sum of raw scores: omega .71, alpha .71
#> Alpha of the sum of standardized scores: .71
#>
#> n mean sd loading item-rest omega_del alpha_del
#> i1 200 3.08 1.04 .72 .56 .61 .60
#> i2 200 2.96 1.04 .63 .51 .65 .64
#> i3 200 2.90 1.01 .57 .47 .67 .66
#> i4 200 3.02 0.90 .54 .44 .68 .68
#>
#> item-rest: the correlation of the item with the sum of the other items.
#> omega_del, alpha_del: omega and alpha of the scale without the item.