Skip to content

Instantly share code, notes, and snippets.

View hofmanpaul's full-sized avatar

Paul Hofman hofmanpaul

View GitHub Profile
hofmanpaul /
Created December 21, 2018 09:31
Example Stata code to create nice descriptives and balance tables
*ssc install outreg
*ssc install estout
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())