The code below produces the table which follows. The keep option orders the variables the way I want-- in this example with tenure before the industry dummies. Is there an option other than keep which re-orders some variables without requiring a full list of variables to be retained?
Thanks,
Devra
Thanks,
Devra
Code:
clear
webuse nlswork
global v1 "age"
global v2 "age tenure"
reg ln_wage ${v1} i.ind_code
estimates store e1
reg ln_wage ${v2} i.ind_code
estimates store e2
etable, estimates( e1 e2 ) keep(${v1} ${v2} i.ind_code) ///
title("2 models") ///
cstat(_r_b, nformat(%9.3g)) cstat(_r_z, nformat(%9.3g)) ///
showeq showstars showstarsnote
Code:
2 models
-------------------------------------------
ln_wage ln_wage
-------------------------------------------
ln(wage/GNP deflator)
Age in current year .0171 ** .00959 **
44.6 23
.0171 ** .00959 **
44.6 23
Job tenure, in years .0314 **
41.7
Industry of employment
2 .474 ** .471 **
7.27 7.39
[lines omitted]
11 .367 ** .322 **
13.2 11.8
12 .5 ** .427 **
17 14.9
Number of observations 28169 27764
-------------------------------------------
** p<.01, * p<.05

Comment