Hello,
I'm looking around since few hours but I didn't find a solution.
I would like to calculate the Geometric Mean in the row.
I tried first to calculate the products of the row with egen newvar = rprod(varlist) and that worked.
Now I need to calculate for the product of every row the nth root. I have 7 variables so I need the 7th root of the products.
I didn't find any solution to calculate the nth root.
I Hope someone can help me
Thank you
Lorenzo
I'm looking around since few hours but I didn't find a solution.
I would like to calculate the Geometric Mean in the row.
I tried first to calculate the products of the row with egen newvar = rprod(varlist) and that worked.
Now I need to calculate for the product of every row the nth root. I have 7 variables so I need the 7th root of the products.
I didn't find any solution to calculate the nth root.
I Hope someone can help me
Thank you
Lorenzo
Comment