clear all set more off set obs 1000 forval i=1/3 { *gen x`i'=rnormal() gen x`i'=6*(runiform()-0.5) } egen ylin=rowtotal(x1-x3) gen y=runiform()