Learn R Programming

eiCompare (version 3.0.4)

race_cand_cors: Table of bivariate correlations

Description

Table of bivariate correlations

Usage

race_cand_cors(data, cand_cols, race_cols)

Value

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

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