contentValidity

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.

Features

Content validity indices

Inference and planning

Convenience

Installation

The released version is available from CRAN:

install.packages("contentValidity")
library(contentValidity)

Or install the development version from GitHub:

# install.packages("devtools")
# devtools::install_github("Rafhq1403/contentValidity")
install.packages("contentValidity", repos = c('https://rafhq1403.r-universe.dev', 'https://cloud.r-project.org'))

Source layout

The package source is located in the standard R-package R/ directory rather than a conventional src/ directory, because contentValidity is implemented in pure R with no compiled code. Unit tests are in tests/testthat/, roxygen2 documentation is in man/, and the getting-started vignette is in vignettes/.

Quick example

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)

Citation

After installing the package, run citation("contentValidity") for a copy-paste citation in BibTeX or plain-text form.

License

MIT (c) 2026 Rashed Alqahtani. See the LICENSE file for details.