Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Hofman hofmanpaul

View GitHub Profile
@hofmanpaul
hofmanpaul / descriptives_balance.do
Created Dec 21, 2018
Example Stata code to create nice descriptives and balance tables
View descriptives_balance.do
*Setup
*ssc install outreg
*ssc install estout
clear
set seed 2299308
set obs 100
gen age = ceil(99*uniform())
gen male = rbinomial(1,0.8)
gen income = ceil(5000*uniform())
gen villagecode = ceil(5*uniform())