Weighted mean [Software]

posted by Helmut Homepage – Vienna, Austria, 2008-05-28 13:55 (6592 d 12:51 ago) – Posting: # 1878
Views: 10,721

Dear Yu!

❝ You said the method of equivtest 2.0 is right in the former while it is wrong in the latter. Please clarify it.


You are right, I did not express myself clearly.
EquivTest v2 and /PK are using the correct formula in all situations (n1=n2 and n1#n2), whereas the formula of v1 is only correct for n1=n2. The formula of v1 is wrong for unbalanced studies (n1#n2).

BTW, the correct method is the 'weighted mean'; an example:
x1 of n1 numbers [1,2,3] is (1+2+3)/3 = 2,
x2 of n2 numbers [4,5] is (4+5)/2 = 4.5.
The weighted mean xw for two groups is defined with (x1n1+x2n2)/(n1+n2), giving (2×3+4.5×2)/(3+2) = 3.
The 'mean of the means' (x1+x2)/2 irrespective of the size of groups (EquivTest 1) leads to (2+4.5)/2 = 3.25.
The bias (in our case +0.25) can be positive or negative, but always drags the overall-mean towards the mean of the smaller group.

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
23,654 posts in 4,992 threads, 1,571 registered users;
148 visitors (0 registered, 148 guests [including 10 identified bots]).
Forum time: 02:47 CEST (Europe/Vienna)

Always listen to experts.
They’ll tell you what can’t be done and why.
Then do it.    Robert A. Heinlein

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5