This vignette demonstrates Operational Code Analysis (OCA) with leadeR.
Setup
library(leadeR)
spacyr::spacy_initialize()
set.seed(02138)
own_ent <- "United States"
B <- 1000
jfk <- clean_text(jfk19610120)Computing OCA indices
The get_oca() function computes the VICS (Verbs in
Context System) operational code indices from text. It returns the 10
standard indices (P1–P5 and I1–I5) along with the underlying raw
counts.
Set bootstrap = TRUE to obtain bootstrap means and
variances.
