Hi,
I have price and quantity data and like to compute a quantity weighted price average using collapse.
My quantity data can be negative. I was wondering what the correct weight to use in collapse is. Currently, I am using "iweight". Is this correct?
Is this going to compute a weighted average?
Thx,
Moritz
I have price and quantity data and like to compute a quantity weighted price average using collapse.
My quantity data can be negative. I was wondering what the correct weight to use in collapse is. Currently, I am using "iweight". Is this correct?
Is this going to compute a weighted average?
Thx,
Moritz
Comment