BEQool ☆ Slovenia, 20230331 12:05 (182 d 16:43 ago) Posting: # 23518 Views: 995 

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, 20230331 13:41 (182 d 15:07 ago) @ BEQool Posting: # 23519 Views: 857 

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 Oops – THX for discovering a bug! We will correct the function and update the package as soon as possible. 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/groupsizes 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.,
— Diftor heh smusma 🖖🏼 Довге життя Україна! _{} Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes 
BEQool ☆ Slovenia, 20230403 07:38 (179 d 21:09 ago) @ Helmut Posting: # 23521 Views: 774 

Great, thank you for additional explanation as well! BEQool 