Hello, listers:
I am not sure whether it is a bug in Stata?
Before going on, I will like to post my code first, then that would be
easier to explain:
local b01=0.02
local b11=0.3
local b21=-0.25
gen tmptau1=emusq1+`b01'^2+(`b11'^2)*(x1^2)+(`b21'^2)*(x1^4)-2*`b01'*emu1-2*
/*
Those are complicated expressions! But the problem, I believe, is that b21
is a negative number. There is a FAQ on this somewhere, but I don't recall
where it is. Basically, in the b21 part of the expression above, what you
probably want is