April 8, 2019

In this post I explore a potential outcomes to the composition of the Winston-Salem city council.

April 7, 2019

A short description of the post.

April 5, 2019

Using fake data simulations to understand the our MRP model.

April 4, 2019

Metropolis Hasting samplers are typically slow in R because of inability to parallelise or vectorise operations. The Rcpp package allows a way to use C++ to conduct these MCMC operations at a much greater speed. This post explores how one would do this, achieving a >20x speed up.

April 3, 2019

This is a quick overview of a trick to add LaTex in ggplot2.

Nov. 7, 2018

This post explores MRP using brms and tidyverse modeling.

Oct. 29, 2018

The purpose of this post is to replicate the examples in the gsynth package for synthetic controls. This is a methodology for causal inference especially at the state level.

Oct. 28, 2018

This is just a quick reproduction of the items discussed in the hts package. This allows for hierarchical time series which is an important feature when looking at data that take a hierarchical format like counties within a state or precincts within counties within states.

Sept. 24, 2018

Looking at a blog post that Andrew Gelman posted on fake data simulations and HLM. The power of fake data simulations is that it really makes you think twice about what kind of effect for which you are looking as well as the power of your research design to detect it. This illustrates a really good practice for anyone looking to do this kind of analysis.

Sept. 17, 2018

Network analysis provides an way to analyse the interconnectedness of different networks. This can provide insight into social networks, interconnected groups of text, tweets, etc. Visualisations help to show these relationships but also some numeric values to quantify them.

Sept. 16, 2018

Exploring the examples in Kleiber and Zeileis' Applied Economics in R

July 19, 2018

Using Fourier Transform as coefficients in short time series data helps with prediction.

July 12, 2018

Exploring the concept of developing internal APIs. An API could also be an R package that can be used by people in your organisation to more easily connect to common data sources. This is a good example of some internal tooling that can make data access easier.

July 11, 2018

Item Response Theory (IRT) is a method by which item difficulty is assessed and used to measure latent factors. Classical test theory has a shortcoming where the test-taker's ability and the difficulty of the item cannot be separated. Thus there is a question of universalisability outside of the instrument. Additionally, the models make some assumptions that mathematically may not be justified. In come IRT which handles some of these issues.

July 10, 2018

So I'm moving to radix

July 10, 2018

Welcome to the rebooted blog!

July 7, 2018

Let's examine some of the functions inside for forecast

July 6, 2018

This post explores how to see opportunities to make your code run faster.

July 5, 2018

Exploring the bsts package and what it provides for Bayesian structural time series modeling

July 5, 2018

ggrough is a great package that can be used to make graphs that look hand-drawn. This can be a great aesthetic choice when giving presentations and making handouts.

July 4, 2018

Exploring the power of gghighlight package to automatically highlight charts

July 4, 2018

An example of the value suppressing uncertainty scale. Great uses include forecast uncertainity.

- apis (1)
- Bayes (5)
- blogging (1)
- brms (1)
- causal inference (1)
- Causal Inference (1)
- communication (1)
- Constructs (1)
- data visualisation (4)
- econometrics (2)
- fake data (1)
- Fake Data (1)
- forecasting (3)
- ggplot2 (4)
- Hierarchical Modeling (1)
- inference (1)
- IRT (1)
- modeling (1)
- mrp (1)
- MRP (1)
- network analysis (1)
- omitted variable (1)
- packages (1)
- platforms (1)
- Political (1)
- prediction (1)
- programming (1)
- r (13)
- Rcpp (1)
- Survey Analysis (1)
- synthetic controls (1)
- time series (2)
- timeseries (1)

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".