Achievwin ★★ US, 2024-02-20 20:49 (296 d 10:26 ago) Posting: # 23869 Views: 2,480 |
|
Naïve question: When we use pa.ABE for parallel study N determination output gives N for certain power (e.g. if N=424 for 85% power) is this N is for total (N=424) or per arm (212+212)? Kindly explain. |
d_labes ★★★ Berlin, Germany, 2024-02-22 10:54 (294 d 20:21 ago) @ Achievwin Posting: # 23871 Views: 2,024 |
|
Dear Achievwin, ❝ When we use pa.ABE for parallel study N determination output gives N for certain power (e.g. if N=424 for 85% power) is this N is for total (N=424) or per arm (212+212)? Call the man page of the function sampleN.TOST() and read under DetailsThe estimated sample size gives always the total number of subjects (not subject/sequence in crossovers or subjects/group in parallel designs – like in some other software packages)." That is valid for all the other sample size estimating functions. The power calculating functions accept a single number as sample size, here also the total. Also accepted a vector of sample sizes, here meaning the sample sizes of groups. — Regards, Detlew |
Achievwin ★★ US, 2024-02-22 19:34 (294 d 11:41 ago) @ d_labes Posting: # 23872 Views: 1,933 |
|
Thank you |
Helmut ★★★ Vienna, Austria, 2024-02-23 11:06 (293 d 20:08 ago) @ Achievwin Posting: # 23877 Views: 1,917 |
|
Hi Achievwin, diving deeper into the matter. I was guessing your example and show the syntax Detlew mentioned above:
If you are interested in post hoc power (I hope your aren’t…), always give the vector of group sizes. If you give the total sample size, the functions of PowerTOST try to keep groups (or sequences in crossovers) as balanced as possible. If your study was more unbalanced, it will calculate a power which is slightly higher than the true one.
The functions of PowerTOST cannot ‘know’ whether a study was unbalanced. It guesses that only if the total sample size is odd (parallel design) or not a multiple of the number of sequences (crossovers). Otherwise, you don’t get a message like above (because in a parallel design it assumes that n1 = n2 = n/2). Try this one:
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |