Hi. I don’t know that this is the best place to ask, but I can’t think of where to go—it’s an extremely basic question.
I have pretty extensive experience with (ahem) normal programming languages, but Stata is giving me fits. I’m trying to figure out how to use ereturn to post estimation results, but I’m getting the most bizarre error. Parsimonious nonsense example:
program define silliness, eclass ereturn clear tempname b V matrix input b = (2, 2) matrix input V = (2, 3 \ 3, 2) // This works, making (2, 2) available in e(b): // ereturn post b // But this doesn't---it throws a "name conflict" error. WTF?! ereturn post b V end
Changing the name of the variance matrix does nothing. I’ve played around with macro substitution a bit, trying to figure out the calling convention, but the best I could do is no error and an empty e(V). Argh, what am I doing wrong?