Skip to content


A Storehouse for State Roll Call Votes?

There doesn’t seem to be much in the way of infrastructure when it comes to collecting, storing, and analyzing state legislative roll call votes. Keith Poole and Howard Rosenthal have an extremely comprehensive dataset of roll call votes for the United States Congress. The folks at UC Berkley have a large collection of roll call votes for various legislative bodies around the world at VoteWorld. Nevertheless, there’s nothing that I’ve found that would indicate much of a comprehensive place for state legislative roll call data. What little I’ve found is in the form of:

  • Gerald Wright’s roll calls across all 50 states, but only from 1999-2000.
  • Seth Masket’s impressive roll calls for California ranging from 1901-2003.
  • Boris Shor has data from all the state legislatures, but I’m uncertain how far back it goes, and as of yet it’s unreleased. (I think they’re still waiting for a few journals to publish some of their works in progress).
  • I’ve heard a rumor that Mark Jones at Rice has data on the Texas House stretching back to 1973, but my repeated attempts at contacting him have utterly failed.
  • It looks like Robert Hogan at LSU has state house roll call data for 28 states from 1995-2000, but he hasn’t released the data either it seems.
  • ProjectVote Smart indeed has roll call votes for a great number of state legislators, but they only have the resources to keep track of votes on key bills, not the complete record.
  • CRAN, the Comprehensive R Archive Network, houses a variety of roll call datasets for a few key legislative sessions, but it’s very much an ad hoc experience.

So my question for all involved is this: “What the hell?” As political scientists, we love data and lots of it. I know there’s lots and lots of good data on state legislative roll call voting sitting out there somewhere. But it sure as hell isn’t easy to locate and analyze it.

Now while I’m yelling about researchers hoarding state data, I need to appropriately yell at myself too. I’ve got a collection of all the roll call votes (or as we call them here, “record votes”) for the Texas House from 1995-2009 and so far I haven’t really shared them with enough folks, hence this post. I need to find a place to put these votes so that everyone who wants to analyze them can get to them. Moreover, I don’t really want to just drop a gigantic text file as a web link on some random page. I would much rather see a more comprehensive mechanism by which any roll call researcher could contribute to and/or use data from a large pool.

I imagine such a mechanism as a web-driven database, where one can browse the data from each of the states and import/transcode/export roll call votes in a variety of formats, including everything from the compact VoteView style to a comprehensive SQL database dump. Ideally, if you’re using R you could automatically draw the appropriate dataset over, without any manual chicanery. So far I haven’t even seen such a tool for any legislative body’s votes, much less that for state legislatures.

Any comments from those in the field? Is there any interest in such a contraption? I mean, I could implement a fancy prettified roll call storehouse, but if I’m the only one using it then it doesn’t do anybody a damned bit of good.

Posted in Politics.

Tagged with , , , , , , .


Can AT&T hear me now?

Verizon iPhoneAT&T’s 3 year exclusive contract with Apple’s iPhone ends in roughly 190 days. That means, in about 191 days, AT&T will be a few million customers short. I cannot wait until I can give them the finger. So what if my contract isn’t up yet? I will gladly pay the early termination fee if it means I get a new iPhone that uses the Verizon/Sprint network. I’m sure AT&T will continue their absurd ad campaign asserting that Edge is really 3G and it can compete with CDMA EVDO Rev. A.

Posted in Tech.

Tagged with , , , .


TexLege for iPhone Released!

TexLege Icon
Finally! I’ve successfully linked my passion of politics and gadgets! My iPhone application for the Texas Legislature is released and available for public consumption from iTunes. Please head over to my TexLege site for screenshots, feature listings, or for questions and support. Also, if you’re a government student in college, I will happily send you an iTunes coupon to download it for free (although Apple limits me to 50 coupons). Nevertheless, even without the coupon, its only $2.99.

Posted in Politics, Tech.


Partisanship in the Texas House of Representatives

This is from the work I've done in my dissertation. This chart shows the level of partisanship between the political parties in the Texas House of Representatives across 18 years of record voting (otherwise known as "roll call votes").

The center line, at 0 should be your reference when viewing this movable chart. The further away a party is from this center line, the more partisan their voting behavior. To help simplify this, the bigger the circle, the less bi-partisan they are.

I've collected all the roll call votes from the Texas House of Representatives from 1991 through 2009. Then I use a dimensional scaling method, W-NOMINATE from Keith Poole's VoteView research. I also do some creative aggregate calculation for the political parties and "Speaker's Teams", and squeeze in a nifty little trick from Gerald Wright that applies a Groseclose-Levitt-Snyder transformation to get all the sessions within the same scope.

[Updated with 2009 data.]

Posted in Politics.

Tagged with , , , , , , , .


The Trouble With Regular Expressions

I have this problem with regular expressions. They're too handy for their own good.  You say you don't know what a regular expression is?  Well, let me just tell you, you don't know what you're missing out on.  Think of it like a really super-duper complicated way of searching for something real specific when it's slapped in the middle of a whole back of other crap you don't want to even mess with.  But it's not even just searching for something, you can search and replace really complicated text that's just too big to do by hand.
Regular Expressions Book

Regular Expressions Book

More than that, it's not like you just want to find every reference to the name "Meg" on your computer and change it to "Poop" ... you can use regular expressions to transform Huge Text File (A) into just the  little sub-sections of important stuff ... or you can convert (A) from one textual format to another, like from HTML to Whiskey, or whatever the hell new-fangled nonsense is going on out there in web junky land. There are plenty of programs out there that make use of regular expressions and you don't even know about it.  I first started playing around with them way back in 1995 or so, not long after Rich Siegel started selling BBEdit for Macintosh, and I've been using them since.  Here's an example ... say you have a text file that looks like this: Jimmy Jack Johnson sells 43 seashells to Yo Momma. She paid about three-fiddy. You can do a regular expression find/replace on that text, which would look something like this: 's/^(J.*)\ J.*\ (J.*)\ (s)...s\ ([0-9]+).*\r/\1\ sucks\ \4\ \2\3\.\r/g' Which would now make that first text look something like this: Jimmy sucks 43 Johnsons. This sort of thing would be great for pranking your frienemies, but I have yet to hear of such a thing catching on.  Which brings us to my current dilemma.  I've come to rely on regular expressions so much that I believe they can do anything.  Unfortunately, I think I'm demanding too much, or at least my computer is unwilling to give me everything it's got in order to accomplish this task.  I have a  text file, freshly spit out from Excel, that has 43 columns of textual data over 160 some-odd rows ... not that big of a file, it's only got about 43,000 characters.  It's tab-delimited, meaning that in the text file, there's a unprinted tab character (\t) between each section of the data, to separate out each of the cells.  What I wanted to do was churn this tabbed text file into an XML .plist, or Property List file.  I'm sure there's a more elegant way of doing this (without having to do it by hand, obviously), but I chose to create a regular expression ... here's what the "Search For" string looks like: ^(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\r And here's what the "Replace With" string looked like: legislatorID\r\1\rlegtype_name\r\2\rlegtype\r\3\rlastname\r\4\rfirstname\r\5\rmiddlename\r\6\rnickname\r\7\rsuffix\r\8\rparty_name\r\9\rparty_id\r\10\rdistrict\r\11\rtenure\r\12\rpartisan_index\r\13\rphoto_name\r\14\rbio_url\r\15\rnotes\r\16\rgallery_desk\r\17\rcap_office\r\18\rstaff\r\19\rcap_phone\r\20\rcap_fax\r\21\rcap_phone2_name\r\22\rcap_phone2\r\23\rdist1_street\r\24\rdist1_city\r\25\rdist1_zip\r\26\rdist1_phone\r\27\rdist1_fax\r\28\rdist2_street\r\29\rdist2_city\r\30\rdist2_zip\r\31\rdist2_phone\r\32\rdist2_fax\r\33\rdist3_street\r\34\rdist3_city\r\35\rdist3_zip\r\36\rdist3_phone1\r\37\rdist3_fax\r\38\rdist4_street\r\39\rdist4_city\r\40\rdist4_zip\r\41\rdist4_phone1\r\42\rdist4_fax\r\43\r\r Needless to say, it did not go over well.  BBEdit died after ten minutes of churning.  Perl sucked up 2 Gigs of RAM before I had to kill it.  Sure I could process the file little bits at a time, but wouldn't that be taking the fun out of regular expressions?

EDIT / Update: 

Yeah, about all that. With a tiny bit of touching up, a demo version of TextMate processed the whole file in about 6 seconds. Sounds like someone’s going to actually have to pay for a software registration when the demo expires. Nothing like knocking my socks off and shaming a few industry leaders to earn your keep. Nice job there buddy.

Posted in Humor, Tech.


Allow me to expound on my car’s litany of woes.

audi So I have this great car, a 2002 Audi A6 Quattro (2.7L Bi-Turbo).  Not the one pictured on the right, but close enough.  My car and I have this special relationship.  One day I'll tell you all how it started, but not today.  Today, you see, I'm telling you how it's likely to end.  So we've got this special relationship.  It drives me to school and I fix it up when it breaks.  Lately, there's a lot of the latter and not much of the former.
  1. It all started going downhill last year when I noticed that it literally spewed out any gas over 3/4 full in the fuel tank.  Since this job didn't qualify as a DIY, I took it to the dealership.  $2,600 later and the tank fills just fine.  Luckily, later that year Audi decided to fix this defect in the whole line of cars, and thus refunded me that expense.
  2. Then I got this check engine light (CEL) ... the computer/scanner tells me that the engine is running too lean, meaning it's got too much oxygen coming in to the combustion chamber.  After a few weeks of hunting down cracked and broken vacuum hoses throughout the engine bay, the code now stays off and the engine runs great.
  3. A few months later, I notice that during a heavy rain the rack that holds the battery, along with the brake boosters, master cylinder, and ECM module filled completely with rain water.  Audi didn't think to remove a plastic cap that drains this out ... Sadly, by the time I fixed it, the brake fluid reservoir and brake boosters got water in them, then rusted.  So I flush it as best I can, but now my brake booster squeaks like nails on a chalkboard every time I pump them.
  4. In the course of flushing my brake fluid, I figured I might as well replace the brake disc rotors and pads.  This is about a month ago.  While midst replacement, I notice that a CV joint boot that holds in axel grease and protects the joint had recently obliterated itself.  The clue to this issue was the lack of axel grease on the front drive axel, yet everywhere else around it, such as the wheel well, brake rotors, brake calipers, suspension linkage, yeah ... all that crap had lots of axel grease when there shouldn't be any.  Funny how that happens.  I replaced the front drive axel (which comes with the CV boots) and all was well...
  5. Then I got another CEL ... this one told me that I have a stuck valve in my torque converter.  I had seen this particular code come up once before about a year ago, but it went away.  Looking online, folks said this generally comes on when the Automatic Transmission Fluid (ATF) is too low.  Odd, given that my friend/neighbor and I had changed the ATF and transmission filter about a year ago.  Interesting.  When I approach the Audi dealer about doing another ATF change, thinking I must have done it wrong, the Audi dealer refuses, saying the fluid is good for the life of the car ... I call horseshit. This leads me to my latest ...
  6. I take the car, which now is showing some symptoms of transmission issues, to a european transmission rebuilder, hoping that a proper fluid change will fix my problems.  Sadly, after several days on the lift, they inform me that the low fluid was due to a leak.  They fixed the leak, but the damage was already done.  Clutch plates had burned.  The torque converter is in serious trouble.  My trusty old ZF 5HP19FLA transmission isn't so trusty anymore. The estimated fix for this one?  Between $2,800 and $3,400 US dollars.  Holy shit.
  7. I'm thinking that I should just drive it until the transmission collapses in a whimper or calamitous implosion.  But that might happen in the next couple of months.  I'm not really set up to spend $3,400 on a transmission rebuild, but then again I'm not set up to buy another car when this one completely fails, either.
  8. Oh yeah, I almost forgot.  When you drive the car above 60 mph, the whole thing shakes like your granny's false teeth in a blizzard.  Looks like some control arm bushings need a little love, too.
  9. I love my car.

Posted in Cars, Humor.

Tagged with , , , , .


Thank God we got this settled…

 
Jesus riding a dinosaur

Jesus riding a dinosaur

So it's been said that the 81st regular session of the Texas House of Representatives would be a dull one.  The Speaker of the House is not Tom Craddick, much to everyone's surprise, so no more Texas State Troopers storming the chamber to prevent a violent mutiny.  The public already knows about all the ghost voting, or as I like to call it "Surprise, Representative Alonzo, you're now a Republican", so there's no more excitement there.  But little did we know that Representative Charlie Geren from Texas' 99th district had a little nugget (nougat?) of legislative gold in store for us.   Continued...

Posted in Humor, Politics.

Tagged with , , , , .


Porn Industry Stimulus Package

Woody as Larry

Larry Flynt (of Hustler Fame) is tired of seeing all this good money go to bad people, what with all these slick auto manufacturers rolling in the hay with our hard earned virgin taxes.  So, dear old Larry is looking for a little government assistance for something a little more near and dear to our hearts, or at least our loins... He's asking for a measly $5 billion to help out the US porn industry.  Now some of you may shrug this off as excessive or just silly, but here's some figures to ponder...

 

Continued...

Posted in Humor.

Tagged with , , .


Free Adam “Bullet Proof” Reposa

What a wanker

So Adam Reposa, heretofore known as "Bulletproof", is criminal defense attorney in Austin. It just so happens he attended UT Law with Lorin. It just so happens Bulletproof has managed to get into a little stink with a Travis County Court judge when he made an obscene jester at the opposing prosecuting attorney. This "simulated masturbatory gesture" landed him a Contempt of Court charge as well as 90 days in jail.

Granted, if I ever find myself in a Travis County jailhouse after a heavy night of binge drinking and a few smashed up cars in my rearview mirror, I would probably give Bulletproof a ring.  It sounds like the prosecutor really pissed him off with some legal objection, so I'm sure it was a deserved response.  But still, I'm left wondering WTF?

 Here's the original report from K-Eye News.  BP has since returned before the judge and "apologized" (with his middle finger, assuredly), but the judge followed through with a sentence of 90 days in jail.  Here are Bulletproof's comments following the sentencing. My favorite quote:

"I'm not very good at looking contrite.  All I do is wake up in the morning and fight the government."

The backlash is even more amusing, given his sudden prominence in a number of blogs, (including this one?) Please click on through at some awesome YouTube footage of his commercials.  What a guy.

 

 

Posted in Humor.

Tagged with , .


A Champion in the House of Representatives?

Capitol BuildingYou out there, if you're listening, I need a friend in the Texas House of Representatives. In the next few months I'll need to gain interviews with a few representatives in the Texas House, or even former members, former lobbyists, staffers, political insiders, or former speakers of the House. This has to do with my dissertation, so it's purely academic research. I'm pretty certain I can grant any level of anonymity necessary to complete the interview. It's inherently political and therefore it's something representatives would rather not go on the record about ... hence the anonymity. I don't want to go into details here, at least not yet, but if any of you have a friend of a friend in Austin who can lend me a hand in getting these interviews, I'd love to hear from you.

Posted in Politics.

Tagged with , , .