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
Interpretation Competing Risk (Stcrreg) – Comparability of CovariatesDear Stata Users, I have a question regarding the interpretation and comparability of the hazard ra…
adding top 3 variables with the highest value out of 6 variables for each observationHi, I have 6 variables each having a range of values. For each observation I want to add the 3 vari…
How do I store coefficients from GARCH model in a postfile Code: capture postutil clear postfile table1 arch using "vov.garch.dta", replace arch vov, arch(1…
Admetan | Forest plot formattingHello, I have a series of forest plots, which I need to edit further. An extract of the code for o…
How to append a sub-set of observations.Hi everyone, So, I have a very large yearly database on students of different educational levels (3…
Subscribe to:
Post Comments (Atom)
0 Response to attribute the displayed output of a command in local macro
Post a Comment