I would like to request to kindly help me by sharing appropriate state function for creating a new variable which contains partial mean :
1. A1 = w1/1 . A2 = (w1+w2)/2 . A3 = (w1+w2+w3)/3. ... An= (w1+w2..+wn)/n
2. if I have a single variable that has groups of data like A= A1.. An, B= B1... Bn, C= C1.. Cn. then how the partial mean of the three variables be calculated using stata functions.
Looking forward to getting kind help.
Regards
1. A1 = w1/1 . A2 = (w1+w2)/2 . A3 = (w1+w2+w3)/3. ... An= (w1+w2..+wn)/n
2. if I have a single variable that has groups of data like A= A1.. An, B= B1... Bn, C= C1.. Cn. then how the partial mean of the three variables be calculated using stata functions.
Looking forward to getting kind help.
Regards

Comment