[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: running product
Alessandra Franzosi wrote:
You can always exponentiate the sum of the logs.
How is it possible to generate in Stata a new variable that is the running product of another one?
gen double rprod = exp(sum(ln(x)))
But it won't take much to exceed numeric storage limits with a running
product, however it is generated.
* For searches and help try: