BigQuery & GDS 2022 Prez- Georgia Voter File

2024-01-13

Intro

Google Data Studio Dashboard

GitHub Project

Executive Report

BigQ_EDA Code

The TS GA Sub setted Data

##   vb_vf_cd           created_at           updated_at vb_vf_g2018 vb_vf_g2020
## 1        0 2022-03-09T13:45:56Z 2022-03-09T13:45:56Z                        
## 2        0 2022-03-09T13:45:56Z 2022-03-09T13:45:56Z                        
## 3        0 2022-03-09T13:45:56Z 2022-03-09T13:45:56Z           B           B
## 4        0 2022-03-09T13:45:56Z 2022-03-09T13:45:56Z                        
## 5        0 2022-03-09T13:45:56Z 2022-03-09T13:45:56Z                        
## 6        0 2022-03-09T13:45:56Z 2022-03-09T13:45:56Z                        
##   vb_tsmart_cd            voterbase_id vb_tsmart_zip vb_vf_reg_zip
## 1            0      GA-Y29454536953664         30560            NA
## 2            0 GA-N2945WQGAKEWKOXLS5RX         30909            NA
## 3            0      GA-Y29454996591744         31419            NA
## 4            0      GA-Y29454522744196         30720            NA
## 5            0 GA-N2945PH5RZ0DMD9ZEQDB         31098            NA
## 6            0 GA-N29453UO2JUMNC98KWO0         31322            NA
##   vb_tsmart_city vb_vf_reg_city             Lat_Lon vb_reg_latitude
## 1      MORGANTON                34.88095, -84.19418        34.88095
## 2        AUGUSTA                33.47216, -82.08327        33.47216
## 3       SAVANNAH                31.98932, -81.21586        31.98932
## 4         DALTON                34.73908, -85.00294        34.73908
## 5  WARNER ROBINS                32.61268, -83.59074        32.61268
## 6         POOLER                32.14793, -81.24685        32.14793
##   vb_tsmart_state vb_vf_reg_state vb_reg_longitude vb_voterbase_age
## 1              GA                        -84.19418               32
## 2              GA                        -82.08327               31
## 3              GA                        -81.21586               81
## 4              GA                        -85.00294               47
## 5              GA                        -83.59074               27
## 6              GA                        -81.24685               73
##   vb_vf_county_code vb_vf_county_name vb_voterbase_race vb_tsmart_latitude
## 1                NA                           Caucasian           34.88095
## 2                NA                    African-American           33.47216
## 3                NA                    African-American           31.98932
## 4                NA                           Caucasian           34.73908
## 5                NA                           Caucasian           32.61268
## 6                NA                           Caucasian           32.14793
##   vb_vf_voter_status vb_tsmart_last_name vb_tsmart_longitude
## 1                                SAUNIER           -84.19418
## 2                              STARLINGS           -82.08327
## 3                                 COWART           -81.21586
## 4                                COPPOCK           -85.00294
## 5                                  BROWN           -83.59074
## 6                                  WHITE           -81.24685
##   vb_voterbase_gender vb_tsmart_first_name vb_tsmart_county_code
## 1                Male                GLENN                    NA
## 2                Male                ANDRE                    NA
## 3                Male              CLINTON                    NA
## 4                Male                 GARY                    NA
## 5                Male               AUSTIN                    NA
## 6                Male                JAMES                    NA
##   vb_tsmart_county_name vb_tsmart_middle_name vb_tsmart_partisan_score
## 1                                                                 67.0
## 2                                                                 81.4
## 3                                           D                     64.2
## 4                                           L                     60.2
## 5                                        DEAN                     69.1
## 6                                           N                     44.2
##   vb_vf_early_voter_status vb_voterbase_phone_presence_flag
## 1                                                         N
## 2                                                         Y
## 3                                                         Y
## 4                                                         Y
## 5                                                         N
## 6                                                         N
##   vb_tsmart_midterm_general_turnout_score State_match City_match Zip_match
## 1                                    15.4    No_Match   No_Match      <NA>
## 2                                    12.7    No_Match   No_Match      <NA>
## 3                                     3.8    No_Match   No_Match      <NA>
## 4                                    18.2    No_Match   No_Match      <NA>
## 5                                    20.6    No_Match   No_Match      <NA>
## 6                                    24.4    No_Match   No_Match      <NA>

R Markdown

-Subsetting at with the TS Smart variable was considered best for it resulted in a bigger sample than voter file state variable

## [1] 15709

rows

-Whereas the Voter file State scores had

## [1] 13337

rows

Model Scores

## Warning: package 'sur' was built under R version 4.3.1
## x
##    Match No_Match 
## 84.90038 15.09962

Coordinate Exploration

## Warning: package 'tibble' was built under R version 4.3.1
## Warning: package 'tidyr' was built under R version 4.3.1
## Warning: package 'readr' was built under R version 4.3.1
## Warning: package 'stringr' was built under R version 4.3.1
## Warning: package 'forcats' was built under R version 4.3.1
## Warning: package 'lubridate' was built under R version 4.3.1
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.2     ✔ readr     2.1.4
## ✔ forcats   1.0.0     ✔ stringr   1.5.0
## ✔ ggplot2   3.4.2     ✔ tibble    3.2.1
## ✔ lubridate 1.9.2     ✔ tidyr     1.3.0
## ✔ purrr     1.0.1     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the ]8;;http://conflicted.r-lib.org/conflicted package]8;; to force all conflicts to become errors
## Warning: package 'sf' was built under R version 4.3.1
## Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
## Warning: package 'mapview' was built under R version 4.3.1
## The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
## which was just loaded, will retire in October 2023.
## Please refer to R-spatial evolution reports for details, especially
## https://r-spatial.org/r/2023/05/15/evolution4.html.
## It may be desirable to make the sf package available;
## package maintainers should consider adding sf to Suggests:.
## The sp package is now running under evolution status 2
##      (status 2 uses the sf package in place of rgdal)

MARIETTA & MACON

-This is the numbers of folks in MARIETTA:

## [1] 5665

-This is the numbers of folks in MACON:

## [1] 2699

Now we can Look at age Break Down of Macon & Marietta

## Now we can Look at Sex Break Down of Macon & Marietta

This is the Sex breakdown of Macon:

## x
##    Female      Male   Unknown 
## 53.019637 44.831419  2.148944

This is the Sex breakdown of Marietta:

## x
##    Female      Male   Unknown 
## 51.226831 46.248897  2.524272

There was a difference in the breakdown of Race

Racial Breakdown of Macon:

## x
## African-American            Asian        Caucasian         Hispanic 
##       53.2789922        1.3708781       42.0896628        1.2597258 
##  Native American            Other          Uncoded 
##        0.1482030        1.2226751        0.6298629

Racial Breakdown of Marietta:

## x
## African-American            Asian        Caucasian         Hispanic 
##       19.6293027        4.4483672       64.8896734        6.9196823 
##  Native American            Other          Uncoded 
##        0.2294793        2.1535746        1.7299206

Ending Statements

-If I had more time: