Displaying 1 result from an estimated 1 matches for "wa_a".
Did you mean:
a_a
2010 Jun 13
0
Weighted Average application on Summary Dataset
...R2 734 24
B SR2 1054 31
A Sr1 600 43
A SR3 1033 60
A Sr1 1163 30
B SR4 732 43
B SR4 988 70
A SR3 569 25
B SR4 1073 65
Output I require:
R SR WA_A N (Sum of N)
A SR1 912.0098 102
SR3 896.5294118 85
B SR2 914.3636364 55
SR4 957.1966292 178
(Weighted Average
of A for N weights)
# FUNCTION TO CALCULATE THE WEIGHTED AVERAGE FOR A WEIGHTED BY N
WA<-function(...