BEQool ★ 2023-03-31 12:05 (754 d 01:28 ago) Posting: # 23518 Views: 3,400 |
|
Hello everyone! I am a complete beginner in BEQ field and lately I have been going through this forum a lot and have learned so much and I would like to thank you all for contributing to thorough explanations and interesting discussions. Regarding my question, I was calculating confidence intervals in R using package PowerTOST and function CI.BE and I think I have noticed a minor mistake in CI calculations when having unbalanced design with odd total number of subjects without defining number of subjects in each sequence. If I am not mistaken, in this case the program incorrectly calculates CI assuming balanced design with half (0.5) of a subject in each sequence and doesnt assume an unbalanced design with small imbalanced as it does in other functions (for example when calculating power using power.TOST). An example: CI.BE(pe=1.0659, CV=0.1539, n=27) Notice that CI for n=27 are the same as for n=c(13.5,13.5), however the correct CI should probably be the same as for n=c(14,13). Not big of a difference, however it could be relevant in some cases? I am sorry if this has already been discussed before, I went through forum and havent found anything relevant. Best regards BEQool |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2023-03-31 13:41 (753 d 23:52 ago) @ BEQool Posting: # 23519 Views: 2,735 |
|
Hi BEQool, ❝ […] I would like to thank you all for contributing to thorough explanations and interesting discussions. Welcome (also in the name of other members of the forum). ❝ […] I was calculating confidence intervals in R using package PowerTOST and function ![]() BTW, the problem applies not only to odd total sizes:
The more imbalanced the design gets, the wider the CI. When we implement ‘best guess’ sequence-/group-sizes like in the other functions, it will still be what it says: A guess (trying to keep the design as balanced as possible). If you give the total sample size, you will always get the first row of the data frame above, i.e.,
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
BEQool ★ 2023-04-03 07:38 (751 d 05:54 ago) @ Helmut Posting: # 23521 Views: 2,651 |
|
Great, thank you for additional explanation as well! BEQool |