This is the code that lies under a (less technical) article on the NZES I wrote published on Public Address, in more or less the order it is used in the article Data setup and organisation #for all subsequent code chunks, this chunk is assumed to be run and the libraries loaded. if(!require(haven)){ install.packages(“haven”) require(haven)… Continue reading New Zealand Election Survey 2014 processing code

So, venturing into the “Does Friday the thirteenth affect births in New Zealand for a final time, after parts one and two. Part 1 Part 2 But this part is about really showing what a little insight into the data can do to help an analysis – telling the story of the way a lever… Continue reading Friday the 13th, Part 3

A report I was just looking at had both a big methodological hole, and a subtler thing to be careful of, and a mistake most people make. I thought it worth while to write up all three. Eye tests and road accidents The New Zealand Ministry of Transport is looking at getting rid of eye… Continue reading This study is bad and they should feel bad