Postgres SQL code to query a Whatcom County Voter database to comapare previous and current elections for active vs. inactive voters, precincts vs. general election participation via ballotcounted and precinctid fields. Political piece is here.
R, Julia, SQL, Octave and others: Personal notes on data analysis, computation, data access most especially for querying voter history, Census, PDC, and other election data. Reader is advised to just paste the code text into Notepad++.
Monday, September 15, 2014
Saturday, September 6, 2014
Code to Parse PDC (financial disclosure) data for the State of WA
![]() |
| Quantile Regression for PDC Funding for the 42nd WA LD as of 09/01/2014. Republicans in Blue, Democrats in Red, All 42nd funding in grey |
Friday, August 22, 2014
Tuesday, August 19, 2014
42nd District By The Numbers
Political piece is here. My attempt to develop a comprehensive suite to look at all aspects of a voter database.
Wednesday, August 13, 2014
City,County,Census (CVAP) data from ESRI shp files in R 3.1.0
Political piece is here. This post is under construction. I am using R to read ESRI shp with City, County, Precinct, CVAP (Census) data.
Wednesday, August 6, 2014
More Matchback Code
Political piece for this code is here. "Match backs" are the database rendition of the first part of the Vote By Mail process in Whatcom County. Before your ballots are run through a Sequoia 400C Optical Scanner, the outer envelope is processed: verification and validation procedures are applied to the incoming ballot. A number of interesting fields are returned:

