Forecasting the four-party vote share of the 20th presidential election of the Republic of Korea
-
Execute the
Rfiles in each folder in the order of the folders' name:1a_data_generate-1b_summary-2_fundamental_model-3_poll_model -
1a_data_generatefoldersave_RData.Rexecutes all threeRfiles in the same folder. By result, it generatespe.RDatafile that saves historical presidential election results and 20th presidential election pre-election polls.
-
1b_summaryfolder- Use
basic_plot.Rto plot summary of the historical two-party vote share of the Democratic Party. This plot is included in our manuscript as figure 1.
- Use
-
2_fundamental_modelfolder-
Run
run-fund-model.Rto conduct posterior sampling using Rstan. Rstan codes are infund-model-simple.stanfile. -
Use
fund-model-plot.Rto make summary plots from the posterior samples.
-
-
3_poll_modelfolder-
Run
run-poll-model.Rto conduct posterior sampling using Rstan. Rstan codes are inpoll-model.stanfile. -
Use
poll-model-plot.Rto make summary plots from the posterior samples.
-
- Seungwoo Kang and Hee-Seok Oh. (2024) Forecasting South Korea's Presidential Election via Multiparty Dynamic Bayesian Modeling. International Journal of Forecasting. 40(1), pp. 124-141.
