Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: storage type problem

From   "Kostova Deliana (HXX1DAK)" <>
Subject   st: storage type problem
Date   Fri, 28 Feb 2003 10:44:25 -0500

Hi everyone-

I ran into the following small problem that, I think, has to do with storage
types, but I'm not sure how to solve it...

Suppose we want to calculate the product of -.1796042 and 4.752947, so we
display -.1796042^4.752947
and we get

However, if we have variable X= -.1796042 and variable Y=4.752947, and we
gen Z=X*Y, Stata will generate Z=. even though Z should be -.00028563.  

I know this has to do with storage types, so i tried
gen double Z=X*Y, but this still produces a missing variable...

thanks a lot!


*   For searches and help try:

© Copyright 1996–2019 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index