Blog Archives

my 1st post for the Guardian Australia

May 30, 2013
By
my 1st post for the Guardian Australia

I’ll be contributing a piece about once a week for the Guardian Australia, under a part of the web site we’re calling The Swing. The set of graphs from my 1st effort were rendered in-line and rather low-res. Bigger, full res versions appear below; click on the in-line versions. It would be great to find

Read more »

CRAN might get tenure at Yale?

August 24, 2012
By

From one of the R lists I follow: Today (2012-08-23) on CRAN : “Currently, the CRAN package repository features 4001 available packages.” These packages are maintained by approximately 2350 different folks. Previous milestones: 2011-05-12: 3,000 packages 2009-10-04: 2,000 packages 2007-04-12: 1,000 packages 2004-10-01: 500 packages 2003-04-01: 250 packages http://cran.r-project.org/web/packages/

Read more »

Rudd, the last one standing?: Federal implications of QLD state election results

April 4, 2012
By
Rudd, the last one standing?: Federal implications of QLD state election results

Labor won 15 of Queensland’s 29 House of Reps seats in the 2007 Federal election (AEC details here). Yet just three years later, in the 2010 Federal election, Labor won only 8 of 30 Queensland Reps seats, with 33.6% of 1st preferences (a swing of -9.3 percentage points). Labor’s best performance on 1st preferences in

Read more »

pscl 1.04 live on CRAN

October 15, 2011
By

Update to my pscl package, now on CRAN. Biggest change: fixing a bug in the way MCMC draws for item parameters were being stored and summarized by ideal.

Read more »

Bay Area R Users group has 1300 members

October 12, 2011
By

Impressive. You are not alone!

Read more »

tracking Australian election betting markets again (now with sparklines)

July 13, 2011
By

The header of my blog (above) shows the latest prices on offer in some of Australia’s election betting markets.  I convert the prices to an implied probability of ALP win (factoring out the bookie’s profit margin, the so-called “overround”). I’m using some Javascript by John Resig to make Tufte-ish sparklines, although the Google version of sparklines

Read more »

roll calls, ideal points, 112th Congress

June 29, 2011
By
roll calls, ideal points, 112th Congress

Now that classes are over, I took a little time to update my scripts that update the analysis of Congressional roll calls in close to real time.   Links appear at the top of the blog.   As of about 15 minutes ago, we’re up to 77 non-unanimous roll calls in the 112th Senate.  

Read more »

Sweave source for poll report

June 13, 2011
By

Sweave source for the poll report for those who expressed some interest. You’ll also need this file of R function definitions, utilities.R. I also wrote a little shell script that calls Sweave and xelatex etc, hacking the Sweave.sh script that ships with R.

Read more »

Australians and Americans, 10 years after 9/11

June 2, 2011
By

With Lynn Vavreck at UCLA, I ran parallel public opinion surveys in Australia and the United States, measuring attitudes on security, the fight against terrorism, the wars in Afghanistan etc, some 10 years after the 9/11 attacks. Full report here (gene...

Read more »

iPhone geo-tracking database

April 20, 2011
By
iPhone geo-tracking database

So the web lit up a little today with news that iPhones are collecting time-stamped location data, and in a form that isn’t particularly hard to look at (and even with some nice apps to make animated maps of your travels etc): The database is SQLite, and I used R (and the RSQLite package) to

Read more »