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?
Please Help with CodeHi All, I am trying to make a variable that identifies whether a person's second to last work histor…
Merging two data sets based on ranges and assign a numberI would like to merge two data sets where the first dataset contains probabilities. The second data …
add a command and all generated variables and data lost.rename __merge __merge1 /* rename previous merge commands in order to merge tax+financial data with …
Invalid name in foreach loopHi all, I'm trying to iterate over two variables, with the names "category" and "month_created". Th…
Negative statistic chi2 after hausman testHello everyone, I have panel data and my dependent variable is a dummy variable. N=801 (individuals)…
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