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
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
Comment