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
automatically creating year variable for panel dataHi, I am a beginner in Stata. recently I spent a lot of day in creating a panel data, I have a huge …
if else conditional of number of elements in a localHi, I am trying to set a condition within a nested loop. Now, the loop opens some folders; the cond…
Rangestat: value weighted variance and skewnessDear Stata users I need to calculate equially- and value-weighted variance and skewness for each id…
Fixed effect model with controlled variablesHi all. I am using a fixed-effect model to reveal the impact of some factors on the land price (I ha…
closest relative match based on multiple variables after exact matchingDear Statalisters, I have the following problem: I am trying to match two survey waves (let's call …
Subscribe to:
Post Comments (Atom)
0 Response to attribute the displayed output of a command in local macro
Post a Comment