| orm_validate | R Documentation |
orm_validate() supports methodological validation of ORISMA's automatic
risk extraction by presenting a random sample of classified records for
manual review. It then computes Cohen's Kappa to measure agreement
between automatic and manual classification.
This addresses a key peer-review concern: distinguishing between "category detected by dictionary" and "risk actually evaluated in study".
The function saves a CSV file pre-filled with automatic classifications that the researcher edits manually, then re-loads for Kappa computation.
orm_validate(
mx,
n_sample = 30L,
out_dir = "orisma_validation",
validation_file = NULL,
seed = 42L,
lang = getOption("orisma.lang", "en"),
verbose = getOption("orisma.verbose", TRUE)
)
mx |
An |
n_sample |
Integer. Number of records to sample. Default |
out_dir |
Character. Directory to save validation files. |
validation_file |
Character or NULL. Path to a completed validation
CSV (output of a previous |
seed |
Integer. Random seed for reproducibility. Default |
lang |
Character. |
verbose |
Logical. |
If validation_file is NULL: invisibly returns the path to the
validation CSV. If validation_file is provided: returns a data frame
with Kappa statistics per category.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.