#delimit ;

drop _all;
program drop _all;
set more 1;

log using test, replace;
input x y z w;
1 2 1.5 4;
2 5 2.5 5;
3 5 1 4;
4 9 2 5;
5 9 1 4;
6 12 2 5;
end;

regress y x;
outreg x using table1, se nolabel bdec(3) rdec(3) sigsymb(*,**,+) 10pct
		coefastr ctitle(I) replace;

regress y x z;
outreg x z using table1, se nolabel bdec(3) rdec(3) sigsymb(*,**,+) 10pct
		coefastr ctitle(II) append;

regress y x z w;
outreg x z w using table2, se nolabel bdec(3) rdec(3) sigsymb(*,**,+) 10pct
		coefastr ctitle(I) replace;

log close;