Replication code for occbin paper