I noticed something that may or may not be a bug (although likely just me making some sort of mistake or not understanding the command's purpose):
return clear does not clear r-class results. According to the documentation, "return clear clears the return() class" and, indeed, ereturn clear does clear the e-class results:
Anyway, again---probably something I'm doing wrong (I've almost posted on this forum a thousand times, but in the end realised my own mistake!). But if anyone has an answer, I'd greatly appreciate it---I'd like to use the command + capture in a program to return an empty macro if a result doesn't exist (currently I'm just running an unrelated r-class command as a work-around).
Erin
return clear does not clear r-class results. According to the documentation, "return clear clears the return() class" and, indeed, ereturn clear does clear the e-class results:
Code:
sysuse auto, clear quietly summarize mpg return clear return list quietly regress price mpg displacement ereturn clear ereturn list
Erin
Comment