Blog Archives

Aquamacs customizations (auctex, ESS)

October 23, 2010
By

I gave an informal talk on my Mac based “workflow” at Stanford on Friday.  I talked a lot about Aquamacs as a tool for editing LaTeX (I use MacTeX) and for working with R (thanks auctex and ess, respectively).  Skim also got a mention; I emphasized TeX-PDF synchronization. Some of the students were asking for

Read more »

R wanted for an intern at Barron’s

October 13, 2010
By

R/SQL/scripting, oodles of data, a willing outlet for write-ups. Any takers? Do some good. Intern at Barron’s, the New York financial publication with a decades-long tradition of investigative journalism and a more recent commitment to data analytic exposure of fraud in finance, business and healthcare. Bring us your zeal and your data munging skills and

Read more »

How fast is JAGS?

October 6, 2010
By
How fast is JAGS?

From Martyn Plummer, on the JAGS news blog. Key graph below, showing a few outlying cases in which JAGS is substantially slower than OpenBUGS, but generally, JAGS performs quite favorably. Key point from Martyn: Incidentally, these figures are for JAGS with the glm module loaded. The glm module is not loaded by default. If you

Read more »

the spatial concentration of Green support

September 13, 2010
By
the spatial concentration of Green support

I did some poking and prodding of the polling place data, looking at the way Green support is highly concentrated in the inner-capital cities (and in Melbourne and Sydney, in particular). There are a few interesting exceptions that will make sense to...

Read more »

mapping the Australian election (2010 edition)

September 11, 2010
By
mapping the Australian election (2010 edition)

The AEC makes this reasonably easy, as do the authors of some very helpful R packages, the good people at Google Maps etc. Full description here (PDF); entire collection here; a sample here, showing Green 1st preferences, by polling places across metro...

Read more »

Labor vote share across different types of balloting

August 26, 2010
By
Labor vote share across different types of balloting

We’re starting to get more divisions reporting two-candidate preferred numbers by vote type. The emerging picture (literally) is one in which Labor’s performance on the pre-polls and postals is lagging its performance in ordinary votes. On the other hand, Labor seems to be doing well among absentee voters (the regression line sitting above the 45

Read more »

informality, the 2010 edition

August 24, 2010
By

For the last two cycles I’ve done some simple regression analysis of the informal vote.  I saw Possum have his go at it, using a specification that is virtually the same as what I’ve run in the past (2007, 2004). The 2010 edition follows.  As usual, electorate-level informality in House of Reps voting increases with

Read more »

swing graph

August 21, 2010
By

I’m updating a swing dotplot PDF every 10 minutes as the count progresses (and the cool part is that the updates continue even as I’m flying Heathrow to SFO).

Read more »

state-by-state pendulum

August 17, 2010
By
state-by-state pendulum

By popular demand (!), my state-by-state pendulum (pendula?) for 2010 is up (big PDF), just in time for the election.  550px wide JPG version is inline, below. This follows the same formatting I used in the 2007 edition. We start with the 2PP ALP vote shares recorded at the last election (incorporating changes from electoral

Read more »

countrycode R package

August 3, 2010
By

I am digging this countrycode package in R I just found, written by a UM grad student Vincent Arel-Bundock. Very nice. Thanks! countrycode("2","cown","iso3c") "USA" It would be better if the package could handle failed matches a little more gracefully: e.g., > countrycode(c(2,730,818),"cown","iso3c") "USA" when the user was expecting to get back a vector

Read more »