Blog
Notes and updates on statistics, infectious disease modeling, and other miscellaneous topics.
-
On the use of command line tools
What always amazes me is that years ago when memory was scarce and computational power was expensive, tools were developed to parse and manipulate data that fit these restrictions. Among...
-
Defining a Project Workflow
library(data.tree) acme <- Node$new(name = "data analysis project") data <- acme$AddChild("data") data_raw <- acme$AddChild("data-raw") libs <- acme$AddChild("libs") munge <- acme$AddChild("munge") src <- acme$AddChild("src") output <- acme$AddChild("outputs") reports <- acme$AddChild("reports") readme...
-
Finding the Needle in the Haystack
library(tidyverse) One of the challenges in any kind of prediction problem is understand the impact of a) not identifying the target and b) the impact of falsely indentifying the target....
-
State Space Models for Poll Prediction
Motivating Example I have always been interested in state space modeling. It is really interesting to see how this modeling strategy works in the realm of opinion polling. Luckily I...
-
Re-districting in Winston-Salem
Introduction There was a recent bill introduced in the North Carolina General Assembly to reorganise the city counsel by two Republican state members of the General Assembly. The status quo...
-
Omitted Variable Bias
One important concept to discuss is that of omited variable bias. This occurs when you have endogenous predictors that you do not adequately control for in your analysis. Fake Data...
-
MRP Redux
Background I recently got a question about using MRP and I thought it would be worthwhile to share some of the additional explanation of using this approach with a simulated...
-
Speeding Things Up with Rcpp
Introduction I worked on something that started in R and then I wanted to speed it up. MCMC is generally a slow process in base R because it can’t be...
-
Latex in ggplot2
ggplot2 latex trick This is a useful package to use latex notation in { ggplot2 }. I saw this on twitter and wish I had written down the originator for...
-
MRP using brms
Multi-Level Regression with Post-Stratification This blogpost is a reproduction of this . Multi-level regression with post-stratification (MRP) is one of the more powerful predictive strategies for opinion polling and election...