Dear Statalist,

I am trying to do some descriptives and to export the table to a word document. I usually use outreg2 command, however, it seems that is not properly working (I am using Stata 15.1). This is the command I am trying
Code:
bys offshoring: outreg2 using "firm_descriptives.doc" ,  sum(log) eqkeep(mean sd N) keep(offshoring coopera internalRD )
invalid syntax
r(198);
I am pretty sure this command has worked in the past. I am also interested in reporting another descriptive but this time for the panel structure: xtsum...

Have anyone any idea of what am I doing wrong with the outreg2 command; or any other command that allow me to export those descriptive to Word?

Any help will be much appreciated.