Hello,
I am having a problem with two regression output tables I've created not being the same size. I am using Stata 17.0 SE - Standard Edition for Mac.

I ran the code below to create two separate .tex files. Upon opening them in LaTex, the tables are not the same size and do not line up. They have the same number of columns and rows, the only thing different between the two tables are some variables I used in the regressions.

Is there a way I can set dimensions in esttab so the tables are in line with each other in LaTex?

Thank you,
Elaine

Code:
******************Intensity measure 1: High intensity state ****************

* Creates intensity and cohort interaction
        genl born1970_75Xhighintensity=born1970_75*highintensity, l(Born 1970-75 * High-intensity state)

* Loop for dependent variables
foreach depvar in yrseduc numbirthbefore25 {
    
        * Regression
        eststo: reg `depvar' born1970_75Xhighintensity born1970_75 highintensity $controls $OLcohort, cl(cluster) 
        estadd local SFE "No"
        estadd local YFE "No"
        
        eststo: reg `depvar' born1970_75Xhighintensity born1970_75 i.state1970 $controls $OLcohort, cl(cluster)
        estadd local SFE "Yes"
        estadd local YFE "No"
        
        eststo: reg `depvar' born1970_75Xhighintensity i.state1970 i.respyearofbirth $controls $OLcohort, cl(cluster)
        estadd local SFE "Yes"
        estadd local YFE "Yes"
    
}

esttab using "${root}/output/tables/regression_createddata1.tex", replace f ////
 b(3) t(3) r2 nogaps nomtitles numbers varwidth(25) obslast label star(* 0.10 ** 0.05 *** 0.01) ///
 booktabs nonotes ///
keep(born1970_75Xhighintensity born1970_75 highintensity) ///
mgroups("Years of Schooling" "Number of kids before age 25", pattern(1 0 0 1 0 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})) ///
scalars ("SFE" "YFE") sfmt(3) ///


******************Intensity measure 2: 1976 per capita funds****************

est clear 

* Creates intensity and cohort interaction
        genl born1970_75XOlfunds1976=born1970_75*Olfunds1976, l(Born 1970-75 * Classroom Construction funds per capita)
        
* Loop for dependent variables
foreach depvar in yrseduc numbirthbefore25 {
    
        * Regression
        eststo: reg `depvar' born1970_75XOlfunds1976 born1970_75 Olfunds1976 $controls $OLcohort, cl(cluster) 
        estadd local SFE "No"
        estadd local YFE "No"
        
        eststo: reg `depvar' born1970_75XOlfunds1976 born1970_75 Olfunds1976 i.state1970 $controls $OLcohort, cl(cluster)
        estadd local SFE "Yes"
        estadd local YFE "No"
        
        eststo: reg `depvar' born1970_75XOlfunds1976 Olfunds1976 i.state1970 i.respyearofbirth $controls $OLcohort, cl(cluster)
        estadd local SFE "Yes"
        estadd local YFE "Yes"
        
    }

esttab using "${root}/output/tables/regression_createddata2.tex", replace f ////
 b(3) t(3) r2 nogaps nomtitles numbers varwidth(25) obslast label star(* 0.10 ** 0.05 *** 0.01) ///
 booktabs nonotes ///
keep(born1970_75XOlfunds1976 born1970_75 Olfunds1976) ///
mgroups("Years of Schooling" "Number of kids before age 25", pattern(1 0 0 1 0 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})) ///
scalars ("SFE" "YFE") sfmt(3) ///
varlabels(born1970_75XOlfunds1976 "\multirow{2}{*}{\shortstack{Born 1970-75 * Classroom Construction \\ funds per capita}}" Olfunds1976 "\multirow{2}{*}{\shortstack{Classroom Construction funds \\ per capita}}" )