Is there a way to include quote characters when passing variables from MATA to STATA? For instance, if I have
I want the STATA code that is executed to be:
But it is currently:
I have tried including the quotes in sprintf() by escaping with \, but this does not work.
Code:
mata: a = "ABC" stata(sprintf("gen b=%s", a))
Code:
gen b="ABC"
Code:
gen b=ABC
Comment