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
Using atcontrasts in margins for a mixed effect modelHi everyone I am currently working on a project (using Stata 15) to analyse changes in kidney funct…
GLM or Tobit Regression & Forecast for different distributions (incl. zero inflation)Dear Statalists, I'd very much like to hear your opinion on the following. What I’m trying to do: …
How to draw a correlation forest map with the admetan command?Dear Statalist, I have recently done a meta-analysis of the correlation coefficient, but I encounter…
foreach- reorganising multiple variablesHi, I am new to STATA and I am struggling to reorganise a large dataset using loops. Each id repre…
Unbalanced panel data analysisHi dear all i hope you all fine ...i am undergoing a problem in running analysis on the data ,the de…
Subscribe to:
Post Comments (Atom)
0 Response to attribute the displayed output of a command in local macro
Post a Comment