Skip to content

Instantly share code, notes, and snippets.

View NewsappAJC's full-sized avatar

AJC Newsapp Team NewsappAJC

  • The Atlanta Journal-Constitution
  • Atlanta, GA
View GitHub Profile
@NewsappAJC
NewsappAJC / crossover_model_final.R
Created March 7, 2014 19:21
R script used to estimate probabilities for the Atlanta Journal-Constitution's Georgia Legislative Navigator, post crossover day.
library(RMySQL)
library(rms)
gga_host<-Sys.getenv("GGA_HOST")
gga_user<-Sys.getenv("GGA_USER")
gga_password<-Sys.getenv("GGA_PASSWORD")
gga_database<-Sys.getenv("GGA_DATABASE")
con <-dbConnect(MySQL(), user = gga_user, password = gga_password, host = gga_host, dbname = gga_database)
@NewsappAJC
NewsappAJC / legislative_tracker_model.R
Created February 13, 2014 23:10
R script used to estimate probabilities for the Atlanta Journal-Constitution's Georgia Legislative Navigator.
library(RMySQL)
library(rms)
gga_host<-Sys.getenv("GGA_HOST")
gga_user<-Sys.getenv("GGA_USER")
gga_password<-Sys.getenv("GGA_PASSWORD")
gga_database<-Sys.getenv("GGA_DATABASE")
con <-dbConnect(MySQL(), user = gga_user, password = gga_password, host = gga_host, dbname = gga_database)