├── README.md ├── data ├── polls_auxiliary_dataset.tsv └── polls_main_dataset.tsv ├── results ├── avg_poll_result_error_vs_election_outcome.pdf ├── errors_elections.pdf ├── errors_elections_density_plot.pdf ├── logged_results.tsv ├── race_level_bias_and_var.pdf ├── rmse_trend_before_election_rev.pdf ├── stan_finalModel_bias_correlation.pdf └── stan_finalModel_bias_trend.pdf └── src ├── data_exploration.R ├── final_model.stan ├── model_analyze_results.R ├── model_fit_data.R └── model_prepare_input.R /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/README.md -------------------------------------------------------------------------------- /data/polls_auxiliary_dataset.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/data/polls_auxiliary_dataset.tsv -------------------------------------------------------------------------------- /data/polls_main_dataset.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/data/polls_main_dataset.tsv -------------------------------------------------------------------------------- /results/avg_poll_result_error_vs_election_outcome.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/avg_poll_result_error_vs_election_outcome.pdf -------------------------------------------------------------------------------- /results/errors_elections.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/errors_elections.pdf -------------------------------------------------------------------------------- /results/errors_elections_density_plot.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/errors_elections_density_plot.pdf -------------------------------------------------------------------------------- /results/logged_results.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/logged_results.tsv -------------------------------------------------------------------------------- /results/race_level_bias_and_var.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/race_level_bias_and_var.pdf -------------------------------------------------------------------------------- /results/rmse_trend_before_election_rev.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/rmse_trend_before_election_rev.pdf -------------------------------------------------------------------------------- /results/stan_finalModel_bias_correlation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/stan_finalModel_bias_correlation.pdf -------------------------------------------------------------------------------- /results/stan_finalModel_bias_trend.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/results/stan_finalModel_bias_trend.pdf -------------------------------------------------------------------------------- /src/data_exploration.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/src/data_exploration.R -------------------------------------------------------------------------------- /src/final_model.stan: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/src/final_model.stan -------------------------------------------------------------------------------- /src/model_analyze_results.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/src/model_analyze_results.R -------------------------------------------------------------------------------- /src/model_fit_data.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/src/model_fit_data.R -------------------------------------------------------------------------------- /src/model_prepare_input.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-policylab/polling-errors/HEAD/src/model_prepare_input.R --------------------------------------------------------------------------------