Hi
I am trying to calculate the cumulative product of a variable (var1) and get the result in a new variable (product). Example:
var1 product
1 1
3 3
5 15
7 105
Any ideas on how to best implement this in Stata 15.1? Thanks!
I am trying to calculate the cumulative product of a variable (var1) and get the result in a new variable (product). Example:
var1 product
1 1
3 3
5 15
7 105
Any ideas on how to best implement this in Stata 15.1? Thanks!
Comment