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
Adapting Multinomial Logit model (MLOGIT) to land use shares as the dependent variableI have a panel data set for 200 states from 1980 to 2011. My data is contains information on area un…
Fine and Gray calculate risksDear all, Could anyone explain how I can calculate 10-year risks of each individual in my dataset a…
Problem of model specification*The model to estimate is : Surplus primaire ti= a1 surplus primaire ti-1+a2 debti-1+…..+eit. When i …
Combining observations within the same datasetHello all, So I have an individual level dataset, in which the household id (hhid) is not unique, h…
How to compare adjusted means of 2 groupsHi, I am new to Stata and I need to know how can I go about comparing the adjusted means between 2 …
Subscribe to:
Post Comments (Atom)
0 Response to attribute the displayed output of a command in local macro
Post a Comment