Stata replication code