Weighted mean [Software]
Dear Yu!
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:
The weighted mean
The 'mean of the means'
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.
❝ 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]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
![[image]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Complete thread:
- Mean calculation method in unbalanced cross-over study yckim 2008-05-27 15:04 [Software]
- EquivTest v1 / v2 / PK Helmut 2008-05-27 15:41
- EquivTest v1 / v2 / PK yckim 2008-05-28 01:39
- Weighted meanHelmut 2008-05-28 11:55
- Least square mean d_labes 2008-05-28 16:35
- Least square mean yckim 2008-06-03 07:46
- Least square mean JPL 2008-06-03 09:10
- Least square mean vish14184 2008-06-04 06:54
- Least square mean JPL 2008-06-04 08:44
- Least square mean vish14184 2008-06-04 06:54
- Least square mean JPL 2008-06-03 09:10
- Least square mean yckim 2008-06-03 07:46
- Least square mean d_labes 2008-05-28 16:35
- Weighted meanHelmut 2008-05-28 11:55
- EquivTest v1 / v2 / PK yckim 2008-05-28 01:39
- EquivTest v1 / v2 / PK Helmut 2008-05-27 15:41