Code repository

This page links to zip files of all the programming formerly archived on Github. I still use Git on them, I just no longer use Github. You should come here to get the latest versions of anything. Dates shown below are in proper British format dd/mm/yy.



bayes-checking-viz -- commit a8ae417, 23/7/19
Withdrawn, because superceded by several great pieces of work from Stan team

bayesian-dichotomised-meta-analysis -- commit 7fdbdb9, 7/2/22
Code accompanying the BayesCamp white paper "A taxonomy of thresholds used to dichotomise outcomes, and their inclusion in Bayesian meta-analysis"

bayesian-meta-analyses -- commit 7601232, 24/10/18
Material in the making of the paper "The uptake of Bayesian methods in biomedical meta-analyses: a scoping review, 2005-2016"

bigdata-ascii-tools -- commit c9d17fe, 26/1/21
Some utilities for working with big ASCII files


Laborare est errare

For dataviz-book, you should visit the book's page on my website.

For drawmydata, you can simply visit the page. Everything is in one html file.

GRASP -- commit 17a0397, 23/7/20
Data and code from the paper "Could Graded Repetitive Arm Strengthening Programme (GRASP) benefit stroke survivors when delivered at home? Results of a randomised controlled feasibility trial"

html-reports -- commit cf19170, 23/7/20
Create statistical report output in HTML from R and Stata. Lightweight functions to produce the stuff I need and nothing else.

mypage -- commit 5a334a1, 6/11/20
Homepage for browser, with time progress bar and to-do list. Like Momentum but private. And basic.

non-parametric-bayes-updating, 22/10/21
Non-parametric methods for updating a Bayesian model's parameters with new batches of data, including the kudzu algorithm and code supporting the IJCEE paper (see paper number 77 in my Publications page).

pictogram -- commit c5e5a57, 10/7/17
Withdrawn, lots of good alternatives have come along

r-go-split-for-mac -- 18/9/23
I often use an R-Go Tools split keyboard (which I highly recommend), plugged into an Apple Mac. The trouble is that the keys then produce the glyphs according to MacOS, while the keyboard shows the Windows glyphs. This is a json file for use in Karabiner-Elements that just makes the keyboard produce what it shows on the keys. I put ± onto Shift+` instead of the frankly pointless ¬, and there is an Alt+\ shortcut to produce {, which I find handy when writing LaTex.

R2leaflet -- commit 76bebeb, 26/7/13
R function to plot data on interactive JavaScript maps

simpleboot -- commit 2a57bb5, 6/12/16
Very basic wrapper for boot and boot.ci functions in R - for teaching purposes

slicedens -- commit 8ef7742, 22/3/15
Withdrawn, lots of good alternatives have come along

stata-and-r -- commit 4825d1c, 3/6/19
Sharing data and code from Stata to R, or from R to Stata. For those who like to mash it up.

stata-svg -- commit 4e50555, 27/2/18
Package of Stata commands to process SVG graphics after export, and to create new dataviz formats

stata2d3 -- commit 0434baa, 27/1/20
Create interactive D3 JavaScript graphics from standard Stata commands

stata2leaflet -- commit b5e625f, 19/2/20
Output interactive maps using leaflet.js from Stata

statacpp -- commit ae47d4c, 12/10/16
Stata commands for inline C++ code in do-files

timelogger -- commit e77c676, 22/5/20
Lightweight CLI tool adds system date and time to a CSV file

xormydata -- commit 20d6ce7, 1/5/19
A simple command line program for XOR encryption