1.3 Summary Statistics

countyGIS_stat <- st_drop_geometry(countyGIS)

countyGIS_stat <- countyGIS_stat %>%
  select(pctGOP, totalVotes, pct_white, pct_asian, pct_whiteage, pct_asianage, pct_us_born, pct_us_naturalized, pct_employment_male, pct_employment_female)


stargazer(countyGIS_stat, type = "html",summary.stat = c("mean","sd", "min", "median", "max"))
Statistic Mean St. Dev. Min Median Max
pctGOP 0.663 0.161 0.055 0.697 0.969
totalVotes 50,068.440 148,012.800 64 12,428 4,174,415
pct_white 82.203 16.436 4.756 88.387 100.000
pct_asian 1.337 2.610 0.000 0.632 42.597
pct_whiteage 65.093 12.988 4.217 69.502 87.459
pct_asianage 1.060 2.090 0.000 0.510 36.787
pct_us_born 94.508 5.991 43.205 96.594 100.000
pct_us_naturalized 2.016 2.626 0.000 1.175 31.867
pct_employment_male 40.083 3.072 28.900 39.554 67.650
pct_employment_female 40.410 2.621 15.385 40.777 50.255