Dear Statalisters,

I am trying to output regression results to .tex using estout (from ssc, using Stata 15.1). In the regression I am including time series operators (d., l.) which I am interacting with continuous variables (c.) or indicator variables (i.). Here an example:

Code:
webuse nlswork.dta, clear
reg d1.ln_wage L1c.ttl_exp##c.age L1c.hours##i.race

estout using "table.tex", style(tex) keep(L.hours age 1.race) //this works
estout using "table.tex", style(tex) keep(L.hours#1.race)     //this does not work
estout using "table.tex", style(tex) keep(L.ttl_exp#age)      //this does not work
My goal is to keep the interaction terms of the last two examples, but those lines produce the following error messages:
Code:
coefficient L.hours#1.race not found
coefficient L.ttl_exp#age not found
I am wondering about the right way to keep/drop interaction terms. I looked through the help file and related posts on Statalist (here, here, or here) but I could not find an answer.
Best wishes,
Felix


Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(ln_wage ttl_exp) byte age int hours byte race
 1.451214 1.0833333 18 20 2
1.0286198  1.275641 19 44 2
1.5899774 2.2564101 20 40 2
 1.780273 2.3141024 21 40 2
1.7770116  2.775641 23 10 2
1.7786806  3.775641 25 32 2
 2.493976  3.852564 26 52 2
2.5517154  5.294872 28 45 2
2.4202614  5.294872 31 49 2
2.6141725  7.160256 33 42 2
2.5363736   8.98718 35 45 2
 2.462927 10.333334 37 48 2
1.3603482  .7115384 19 40 2
1.2061975 1.1346154 20 40 2
 1.549883 1.4615384 21 40 2
 1.832581 2.2115386 23 40 2
 1.726721 3.2115386 25 40 2
  1.68991 4.2115383 26 40 2
 1.726964  6.096154 28 40 2
1.8082886  7.666667 30 38 2
end
label values race racelbl
label def racelbl 2 "black", modify