contentValidity provides functions for computing content
validity indices used in questionnaire and instrument development. It is
intended for researchers in education, psychology, nursing, health
sciences, and other fields where new measurement instruments must be
evaluated by expert panels.
irrCAC::gwet.ac1.raw() (Gwet, 2008,
2014) — new in v0.2.0cv_sample_size_icvi()) — new in
v0.2.0content_validity() returning all eight indices in a tidy
structuresubscale argument for instruments structured into domains —
new in v0.2.0apa_table(), supporting data frame, markdown, HTML, and
LaTeX output, with selectable per-index interpretation columnsYou can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("Rafhq1403/contentValidity")library(contentValidity)
data(cvi_example)
result <- content_validity(cvi_example)
result
#> Content Validity Analysis
#> -------------------------
#> Experts: 6
#> Items: 10
#>
#> Item-level indices:
#> item icvi mod_kappa aiken_v gwet_ac1 gwet_ac2
#> item1 1.0000 1.0000 1.0000 1.0000 1.0000
#> item2 1.0000 1.0000 0.8889 1.0000 0.8964
#> ...
#>
#> Scale-level indices (overall):
#> scvi_ave scvi_ua mean_kappa mean_ac1 mean_ac2
#> 0.8833 0.6000 0.8470 0.6917 0.8864
# Publication-ready table for journal manuscripts
apa_table(result, format = "markdown")
# Visualize the item map
plot(result, y_index = "gwet_ac2")
# Sample-size planning
cv_sample_size_icvi(expected = 0.85, half_width = 0.10)
#> [1] 49
# Bootstrap confidence intervals
icvi(cvi_example, ci = TRUE, n_boot = 1000, seed = 1)After installing the package, run
citation("contentValidity") for a copy-paste citation in
BibTeX or plain-text form.
MIT (c) 2026 Rashed Alqahtani. See the LICENSE file for details.