Fellow Statalisters (especially StataCorp):
Are there any Mata functions to input values from, and to output values to, a macro in the calling segment? I was thinking of a Mata equivalent of the undocumented c_local command, which allows the user to reset the values of macros in the calling segment. Ideally, I would like to be able to copy values, in both directions, between a local macro in the calling segment and a variable or dataset characteristic. And, ideally, I would like to be able to do this even if the value cannot be enclosed in compound quotes (as will be the case if the value is an unpaired right compound quote).
Is there a way to do this?
Best wishes
Roger
Related Posts with Is there a Mata function for inputting to and outputting from local macros in the calling segment?
Recode helpHi,
I am trying to get three variables only i.e. England, Wales and Scotland.
I want to recode 'n…
Regression with Categorical Dummy VariableDear all,
I would like to conduct the following regression:
y = a + x1*(1-D) + x2*D + x3*(1-D) + x…
Problem with fweight and bar graphsThis is probably an extremely elementary question and I am so sorry in advance.
I have a dataset of …
Test of equality for sibling correlations across groups mixedDear all,
I am estimating sibling correlation using Stata's mixed command via REML for different gr…
Problem grouping hierarchical data into subset of the dataHello I am new to Stata and I am struggling to find the best command /code to the below data.
I am …
Subscribe to:
Post Comments (Atom)
0 Response to Is there a Mata function for inputting to and outputting from local macros in the calling segment?
Post a Comment