race_cand_cors: Table of bivariate correlations

View source: R/ei_descriptives.R

race_cand_corsR Documentation

Table of bivariate correlations

Description

Table of bivariate correlations

Usage

race_cand_cors(data, cand_cols, race_cols)

Arguments

data

A data.frame() object containing precinct-level turnout data by race and candidate

cand_cols

A character vector listing the column names for turnout for each candidate

race_cols

A character vector listing the column names for turnout by race

Value

a dataframe of correlation coefficients describing to correlation between the racial proportion of a precinct and the vote share of each candidate.


eiCompare documentation built on Aug. 31, 2023, 5:16 p.m.