I am trying to attribute the output of a command that just prints and output to the Stata screen (print) to a local macro.
. reghdfe, version
c:\ado\plus\r\reghdfe.ado
*! version 5.2.9 06aug2018
How can I "capture" the "*! version 5.2.9 06aug2018" output to a local macro named "v"?
OBS: the "capture" command itself stops the printing of the output and records the error code. Not the output to the screen
OBS2: reghdfe used to have a e(version) return vector that is no longer present in the newest version, so I am trying this workaround.
Related Posts with attribute the displayed output of a command in local macro
cgmreg - storing the number of observationsI have a problem in pubIishing the estimation tables using esttab as I am unable to store the statis…
How to put all graphs in a same pdf file?Hello. I would like to know if it is possible to make Stata combine all pdf generated by the loop b…
How to drop sequence of observations when the observations are zero sequentlyI am now cleaning my firm-level data. I have panel data which contains 19,150 observations/year for …
Unit root test on panel dataHi! I have a panel data with 155 countries and 43 years. I tried the command Code: xtunitroot ht…
Correlation values over varying periods in time-series dataDear Stata users, I have a time-series dataset of indices with continuously compounded monthly retu…
Subscribe to:
Post Comments (Atom)
0 Response to attribute the displayed output of a command in local macro
Post a Comment