About Peter's stats stuff

General gumpff

I'm a professional statistician - or possibly a data scientist - based in New Zealand, with a background running analytics/stats/data science teams up to 20 people in size, currently available as a private contractor/consultant. Most of my career has been in management and evaluation of overseas aid programmes, but since 2011 I have been working on a range of economic data issues, mostly in New Zealand.

profile for Peter Ellis on Stack Exchange, a network of free, community-driven Q&A sites

My interests include economics, econometrics, complex surveys, time series, spatial statistics, text mining, R, data visualisation, and anything that involves putting data and analysis in the hands of as broad a range of people as possible.

The views expressed in this blog are very definitely my own, not my organisation or the New Zealand government. I might be blogging about data and analysis issues that crop up in work, but anything controversial that relates to my work has crept in by mistake and will be removed if and when I notice it.


  • Comments on specific posts please use the comments section.
  • This page is hosted by GitHub and the source code is all available. The master branch just has the version by Jekyll; you need to check out the source branch to see the actual stuff I write.
  • If you want to make a general comment or request about the blog, feel free to create an issue there and I will definitely respond one way or another.
  • If you're interested in this blog you might as well follow me on Twitter.
  • Professional contacts should be able to find me on my work email or on LinkedIn easily enough.
  • Personal friends should be able to find me on Facebook.

R packages

I am the author and maintainer of the following R packages:
  • ggseas package which allows you to easily incorporate seasonal adjustment and seasonal decomposition into an exploratory data analysis workflow based around ggplot2.
  • Tcomp package which provides data from the 2010 Tourism Forecasting Competition described in Athanasopoulos et al.
  • nzelect package which provides conveniently tidied up election results for New Zealand; so far limited to aggregate results from the 2014 general election.
  • nzcensus package which provides a range of calculated demographic variables at meshblock, area unit, territorial authority, and regional council level from the New Zealand census. This package was originally part of the nzelect project but can now be installed and used separately. The source is the Statistics New Zealand census meshblock data. The package is too large to publish on CRAN so is only available from GitHub.

I also host on my GitHub page the forecastHybrid package, which makes it easy to estimate ensemble or hybrid forecasts using a range of the methods in Rob Hyndman's forecast package. I'm a contributor to that package but David Shaub is the primary author and maintainer.

Blogs I read

There is also this post about my ten favourite and twelve second-favourite statistics / data science books.