JunmoSong/pairwise_stm: v1.0.0 – Initial release for SMR replication
Abstract
Replication Code and Data This release contains the data and R scripts for: Kang, Jeong-han, Eunrang Kwon, and Junmo Song. "Discovering Preference Structure using Randomized Paired Comparisons in Surveys: A Topic Modeling Approach." Sociological Methods & Research. Contents social_problem.xlsx — Raw survey data (N = 920; Korea, 2021) 01_data_preprocessing.R — Data cleaning and RPC encoding 02_model_estimation.R — STM, CTM, and LDA estimation (K = 5) 03_main_figures_tables.R — Main-text figures (4–7) and tables (3–5) 04_appendix_figures_tables.R — Appendix figures and tables Requirements R packages: tidyverse, readxl, stm, topicmodels, tidytext, reshape2, igraph, ggraph Run scripts in order (01 → 02 → 03 → 04) from a working directory containing the data/ folder. Notes STM final model is reproducible under set.seed(2026) searchK() diagnostic statistics may vary slightly across runs (see script comments)
Publication details
- Journal / source
- Zenodo (CERN European Organization for Nuclear Research)
- Publication date
- 27 April 2026