Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ Authors@R:
URL: https://github.com/RPVote/eiCompare
Description: Provides a comprehensive suite of tools for estimating the candidate preferences of racial/ethnic voting blocs in elections. Includes functions for predicting voter race/ethnicity and conducting ecological inference. Race/ethnicity prediction builds on race prediction developed by Imai et al. (2016) <doi:10.1093/pan/mpw001>. Ecological inference methods are based on King (1997) <ISBN: 0691012407>, <https://gking.harvard.edu/eicamera/kinroot.html>; King et. al. (2004) <ISBN: 0521542804>, <https://gking.harvard.edu/files/abs/ecinf04-abs.shtml>.
License: GPL-3
Depends: R (>= 3.5.0), eiPack, ei, wru (>= 1.0.0)
Depends: R (>= 3.5.0), eiPack, ei
Imports: bayestestR, coda, data.table, doSNOW,
dplyr, foreach, ggplot2, graphics, magrittr, mcmcse, methods,
overlapping, purrr, rlang, sf, stringr, tidyr, tidyselect, viridis
overlapping, purrr, rlang, sf, stringr, tidyr, viridis
NeedsCompilation: no
Suggests: knitr, plyr, rmarkdown, reshape2, RColorBrewer,
RJSONIO, testthat, tigris
Expand Down
12 changes: 0 additions & 12 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ export(mean_and_ci)
export(merge_voter_file_to_shape)
export(od_plot_create)
export(overlay_density_plot)
export(performance_analysis)
export(plot_bivariate)
export(precinct_agg_combine)
export(predict_race_multi_barreled)
export(race_cand_cors)
export(race_check_2_3)
export(resolve_missing_vals)
Expand All @@ -47,26 +45,18 @@ export(stdize_votes)
export(stdize_votes_all)
export(strip_special_characters)
export(sum_over_cols)
export(surname_match)
export(surname_summary)
export(tidy_voter_file_wru)
export(wru_predict_race_wrapper)
import(ei)
import(eiPack)
import(ggplot2)
import(wru)
importFrom(bayestestR,ci)
importFrom(coda,as.mcmc)
importFrom(coda,gelman.plot)
importFrom(coda,mcmc.list)
importFrom(doSNOW,registerDoSNOW)
importFrom(dplyr,filter)
importFrom(dplyr,group_by_at)
importFrom(dplyr,inner_join)
importFrom(dplyr,relocate)
importFrom(dplyr,rename)
importFrom(dplyr,select)
importFrom(dplyr,summarise)
importFrom(dplyr,summarise_at)
importFrom(foreach,"%do%")
importFrom(foreach,"%dopar%")
Expand Down Expand Up @@ -110,7 +100,5 @@ importFrom(stringr,str_trim)
importFrom(tidyr,pivot_longer)
importFrom(tidyr,replace_na)
importFrom(tidyr,separate)
importFrom(tidyselect,all_of)
importFrom(utils,capture.output)
importFrom(utils,getFromNamespace)
importFrom(utils,setTxtProgressBar)
2 changes: 1 addition & 1 deletion R/overlay_density_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ overlay_density_plot <- function(agg_betas, results_table, race_cols, cand_cols,
}


out <- inner_join(rt_sub, out, by = "Candidate")
out <- dplyr::inner_join(rt_sub, out, by = "Candidate")
out$sd_minus <- out$mean_size - out$sd_size
out$sd_plus <- out$mean_size + out$sd_size

Expand Down
245 changes: 0 additions & 245 deletions R/performance_analysis.R

This file was deleted.

Loading
Loading