|From||"Erik Ø. Sørensen" <email@example.com>|
|Subject||Re: st: storage type problem|
|Date||Fri, 28 Feb 2003 11:10:16 -0500|
Suppose we want to calculate the product of -.1796042 and 4.752947, so wethis produces - ( .1796^0.475), not (-.179)^4.75 (whatever that would mean). The product (if you want it) would be written with a "*" not a "^".
and we get
However, if we have variable X= -.1796042 and variable Y=4.752947, and weI think you are mixing some things here. X*Y should work well (and be -.85), but X^Y (which you indicate above) will not work since negative numbers raised to non-integers will not work (for good mathematical reasons, this has nothing to do with the storage types).
gen Z=X*Y, Stata will generate Z=. even though Z should be -.00028563.