daryazyatina ☆ Ukraine, 2017-08-03 11:34 (2784 d 14:49 ago) Posting: # 17646 Views: 21,810 |
|
Hi, guys! Today I have a new question related to the the sample size formula for average bioequivalence. Before now I сalculated the sample size for ABE by formula: ![]() (described in the book Shein-Chung Chow, Jun Shao and Hansheng Wang "Sample size calculations in clinical research" Copyright © 2003 by Marcel Dekker (Chapter 10. Bioequivalence Testing) http://www.crcnetbase.com/doi/book/10.1201/9780203911341) I decided to try to calculate the sample size in R with package "PowerTOST" and function sampleN.TOST() Comparing the results of the calculation in R and calculation with formula Shein-Chung Chow, Jun Shao and Hansheng Wang, I realized that they are different. I looked at the articles and books that this function refers to, and understand that different formulas are used. On this basis, I had a question. What formula should I use to calculate the sample size for the ABE using two one-sided tests? |
BE-proff ● 2017-08-03 11:55 (2784 d 14:29 ago) @ daryazyatina Posting: # 17647 Views: 19,997 |
|
Hi darya, Results must be different because PowerTOST uses iterative method for calculation. AFAIK, PowerTOST is used worldwide and no claims from regulators have been received. |
daryazyatina ☆ Ukraine, 2017-08-03 12:08 (2784 d 14:15 ago) @ BE-proff Posting: # 17648 Views: 19,927 |
|
Hi, BE-proff. Thank you for your answer. ❝ Results must be different because PowerTOST uses iterative method for calculation. Have you looked at the formula what I used? There is also used an iterative method. ❝ AFAIK, PowerTOST is used worldwide and no claims from regulators have been received. It's good. But I asked another question. I used formula from book: ❝ ❝ Shein-Chung Chow, Jun Shao and Hansheng Wang "Sample size calculations in clinical research" Copyright © 2003 by Marcel Dekker (Chapter 10. Bioequivalence Testing) and also any claims from regulators have not been received. |
ElMaestro ★★★ Denmark, 2017-08-03 12:17 (2784 d 14:07 ago) @ daryazyatina Posting: # 17649 Views: 19,983 |
|
Hi Daryazyatina, ❝ I decided to try to calculate the sample size in R with package "PowerTOST" and function Good choice ![]() ❝ Comparing the results of the calculation in R and calculation with formula Shein-Chung Chow, Jun Shao and Hansheng Wang, I realized that they are different. I looked at the articles and books that this function refers to, and understand that different formulas are used. Can you tell what your design is and which values you want to plug in for the calculation? If the difference is 2 or 4 subjects, then so be it, subtle differences in approximation may account for that. If the difference is 46 or something then I'd wonder, too. I am sure there is an explanation and that your confidence in the powerTOST package can easily be restored. Apart from that you are of course right if you intended to hint that the author of the power.TOST family of R functions is a dubious character ![]() ![]() ![]() — Pass or fail! ElMaestro |
daryazyatina ☆ Ukraine, 2017-08-03 12:58 (2784 d 13:26 ago) @ ElMaestro Posting: # 17650 Views: 20,042 |
|
Hi ElMaestro, ❝ Good choice Thank you ❝ Can you tell what your design is and which values you want to plug in for the calculation? If the difference is 2 or 4 subjects, then so be it, subtle differences in approximation may account for that. If the difference is 46 or something then I'd wonder, too. I am sure there is an explanation and that your confidence in the powerTOST package can easily be restored. For comparison, I use all the standard properties. Design 2x2, confidence intervals 0.8 - 1.25, power 0.8, alpha 0.05. The only thing about what I'm not sure is CV. Because in formula that I used this is intra-subject variability, but in PowerTOST() this is coefficient of variation as ratio. In calculations in both cases I used СV - 0.3. And this is results from sampleN.TOST() sampleN.TOST(logscale = TRUE, CV = 0.3, details = TRUE) +++++++++++ Equivalence test - TOST +++++++++++ The sample size by the formula I used: n=28 ❝ Apart from that you are of course right if you intended to hint that the author of the power.TOST family of R functions is a dubious character. ![]() ![]() ![]() |
DavidManteigas ★ Portugal, 2017-08-03 14:40 (2784 d 11:43 ago) @ daryazyatina Posting: # 17651 Views: 20,180 |
|
Hi daryazyatina, For some reason, I can't see the image with the formula that you put on the first post. ❝ For comparison, I use all the standard properties. Design 2x2, confidence intervals 0.8 - 1.25, power 0.8, alpha 0.05. ❝ The only thing about what I'm not sure is CV. Because in formula that I used this is intra-subject variability, but in PowerTOST() this is coefficient of variation as ratio. In calculations in both cases I used СV - 0.3. Within subject standard deviation and within subject CV are different parameters. Nevertheless, I think that this is not the only reason for such a big difference. There is a sentence in one of the articles that is quoted on SampleNTOST formula that may clarify this issue: "This formula is less conservative than Formula (5), but it may result in a lower actual power than the required. For example, when α = 0.05, σ = 0.3, Δ = 0.2, θ = 0.01 and a required power = 0.80, the sample size from Formula (6) [Formula from Chow] is 17 per sequence, but the actual power obtained by this sample size is only 0.69." So by reading this, I am not sure if Chow formula might be appropriate to calculate sample size for BABE trials. I have just quickly read the article, so I may not be doing a proper analysis. Perhaps dlabes might clarify this, since he is the master that we all should thank for the amazing PowerTOST package ![]() |
daryazyatina ☆ Ukraine, 2017-08-03 15:46 (2784 d 10:37 ago) @ DavidManteigas Posting: # 17652 Views: 19,876 |
|
Hi, DavidManteigas ❝ For some reason, I can't see the image with the formula that you put on the first post. Look again at the picture with formula. At first it was not visible, now you can see it. ❝ Within subject standard deviation and within subject CV are different parameters. Nevertheless, I think that this is not the only reason for such a big difference. I did not write anything about the standard deviation. ❝ "This formula is less conservative than Formula (5), but it may result in a lower actual power than the required. For example, when α = 0.05, σ = 0.3, Δ = 0.2, θ = 0.01 and a required power = 0.80, the sample size from Formula (6) [Formula from Chow] is 17 per sequence, but the actual power obtained by this sample size is only 0.69." If you looked at the formula I use, you would see in the article that this is another formula Chow. And that's why I do not understand what formula should be used. ❝ So by reading this, I am not sure if Chow formula might be appropriate to calculate sample size for BABE trials. I have just quickly read the article, so I may not be doing a proper analysis. Perhaps dlabes might clarify this, since he is the master that we all should thank for the amazing PowerTOST package I want to understand how to do it right, just this. ![]() |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2017-08-03 17:37 (2784 d 08:47 ago) @ DavidManteigas Posting: # 17653 Views: 20,196 |
|
Hi David & Darya, ❝ For some reason, I can't see the image with the formula that you put on the first post. I uploaded a copy. Should be visible by now. ❝ ❝ The only thing about what I'm not sure is CV. Because in formula that I used this is intra-subject variability, but in PowerTOST() this is coefficient of variation as ratio. In calculations in both cases I used СV - 0.3. ❝ ❝ Within subject standard deviation and within subject CV are different parameters. Nevertheless, I think that this is not the only reason for such a big difference. Chow used the standard deviation, whilst in Power.TOST the CV (fraction, not in %!) is used. However, no big difference since \(CV_w = \sqrt{e^{s_{w}^{2}} - 1}\) and the other way ’round \(s_w = \sqrt{\log{(CV_{w}^{2}) + 1}}\). In Power.TOST for convenience you can use se2CV(foo) for the former and CV2se(foo) for the latter.❝ There is a sentence in one of the articles that is quoted on SampleNTOST formula that may clarify this issue: […] ❝ So by reading this, I am not sure if Chow formula might be appropriate to calculate sample size for BABE trials. ![]() Since the above equations do not have an explicit solution, for convenience, for a 2 × 2 crossover design, the total sample size needed to achieve a power of 80% or 90% at 5% level of significance with various combinations of ε and δ is given in Table 10.2.1. However, in the example which follows on p.260 we read:By referring to Table 10.2.1, a total of 24 subjects per sequence is needed in order to achieve an 80% power at the 5% level of significance. (my emphases)❝ […] Perhaps dlabes might clarify this, since he is the master that we all should thank for the amazing PowerTOST package Detlew is on vacation. Some clarifications: Zhang1 Using the formulas of Zhang or Chow & Liu, you get the sample size / sequence. To obtain the total, multiply by 2, which is already done it the right-hand side of Hauschke’s formulas. Comparison with the references: Table 2, untransformed data, 90% Power, Δ 0.2, σ 0.3, ∕θ 0.05 (p.5371): 37 / sequence
Table 5.4.1, untransformed data, 80% Power, Δ 0.2μR, α 0.05 (p.1583): 52
Table 5.1, log-transformed data, 80% Power, (θ1, 1∕θ1) = (0.80, 1.25), θ 0.95, α 0.05 (p.1132): 40
Stop using the formula given by Chow, Shao, Wang! Sample sizes are way too small – which compromises power. If you used it in the past for 80% power – if all assumptions (CV, θ0) turned out to be “correct” – substantially more than 20% of studies should have failed. If not, you were lucky!
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
daryazyatina ☆ Ukraine, 2017-08-03 17:52 (2784 d 08:32 ago) @ Helmut Posting: # 17654 Views: 19,869 |
|
Hi, Helmut ❝ Stop using the formula given by Chow, Shao, Wang! Sample sizes are way too small – which compromises power. If you used it in the past for 80% power – if all assumptions (CV, θ0) turned out to be “correct” – substantially more than 20% of studies should have failed. If not, you were lucky! Thank you for such a comprehensive answer. It's good that now we will know about this. |
DavidManteigas ★ Portugal, 2017-08-03 18:12 (2784 d 08:11 ago) @ Helmut Posting: # 17657 Views: 19,831 |
|
Thank you for the clarification Helmut, very helpful as always. In the example you've mentioned on page 260 there is also another mistake, since z0.10 is 1.28 and not 0.84, so according to the reduced formula, 28 subjects per sequence would be necessary and not the reported 21. Still, significantly lower than the sample obtained with sampleNTOST. |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2017-08-03 18:33 (2784 d 07:51 ago) @ DavidManteigas Posting: # 17658 Views: 20,056 |
|
Hi David, ❝ […] on page 260 there is also another mistake, since z0.10 is 1.28 and not 0.84, so according to the reduced formula, 28 subjects per sequence would be necessary and not the reported 21. Yep, I noticed that as well. ![]() BTW, z0.05 is 1.64 and not 1.96. In all its “beauty”:
Of course, PowerTOST contains the large sample approximation based on z as well (by an internal and hence, undocumented) function.
![]() Power2Stage for speed reasons (~40 times faster than Owen’s Q).The shifted central t is also good. Only in a few cases higher sample sizes. Conservative, no worries. The large sample size approximation sucks. Always smaller sample sizes than with the other methods, power compromised – unless one dares to submit a study evaluated by z. ![]() Quoting from a conversation with an eminent regulator of the Iberian Peninsula: “Frankly between z and t methods the difference is ridiculous when variability is not large and later a few subjects is added to compensate drop-outs. I do not see any problem in using z-method. I use it because it is very straightforward in Excel and there is no need to have special software.” Well, cough…Brain-dead. 38.9 ℃ and rising, no AC in my office… ![]() — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
d_labes ★★★ Berlin, Germany, 2017-08-16 18:01 (2771 d 08:22 ago) @ Helmut Posting: # 17694 Views: 19,324 |
|
Hi all! In addition to all what was said up to now: Don’t use the Book by Chow, Shao, Wang! It's full of errors, full of a terminology not compatible to other publications so that one has no chance to compare. (F.i. what are epsilon, delta, sigma1.1 compared to our use of theta0, upper or lower BE limit, intra-subject CV. No one knows! To cite our ol'Sailor "garbage in, garbage out, It's that simple.") — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2017-08-03 18:04 (2784 d 08:19 ago) @ daryazyatina Posting: # 17655 Views: 19,924 |
|
Hi Darya, ❝ The sample size by the formula I used: ❝ n=28 To keep everything equal you should convert the standard deviation to the CV. Hence,
Of course higher than the 28 by the dubious formula. As David mentioned above (quoting Zhang’s paper) power is compromised. Let’s check how much:
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
daryazyatina ☆ Ukraine, 2017-08-04 10:15 (2783 d 16:09 ago) @ Helmut Posting: # 17663 Views: 19,713 |
|
Hi Helmut, ❝ To keep everything equal you should convert the standard deviation to the CV. Hence, ❝ You are wrote about converting the standard deviation to СV, but use the formula to convert the standard error to СV. I thought that the standard deviation and standard error are different parameters. Maybe I'm wrong. |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2017-08-04 14:41 (2783 d 11:42 ago) @ daryazyatina Posting: # 17664 Views: 19,824 |
|
Hi Darya, ❝ You are wrote about converting the standard deviation to СV, but use the formula to convert the standard error to СV. I thought that the standard deviation and standard error are different parameters. Like in this thread it is a question of terminology; see this thread for details. In PowerTOST type ?se2CV to get the formulas for conversion. If you want a second opinion:1Nitpick: Chaos everywhere. We have only sw – which is the estimate of the unknown σw… BTW, when it comes to reference-scaling, both the EMA and the FDA correctly use swR. Since scaling is based on the unknown parameters, we might observe an inflation of the type I error.2
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
daryazyatina ☆ Ukraine, 2017-08-16 12:12 (2771 d 14:12 ago) @ Helmut Posting: # 17689 Views: 19,555 |
|
Hi Helmut ❝ Like in this thread it is a question of terminology; see this thread for details. I have some questions about this. Some articles describe the difference between a standard deviation and a standard error. How to understand such articles? for example The terms “standard error” and “standard deviation” are often confused. The contrast between these two terms reflects the important distinction between data description and inference, one that all researchers should appreciate.1
|
Helmut ★★★ ![]() ![]() Vienna, Austria, 2017-08-16 20:54 (2771 d 05:30 ago) @ daryazyatina Posting: # 17695 Views: 19,447 |
|
Hi Darya, ❝ Some articles describe the difference between a standard deviation and a standard error. THX for the second one! Was great fun to read. ❝ How to understand such articles? Duno. Perfect description. Read them again. ![]() — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
balinskyi ☆ Ukraine, 2018-06-03 14:58 (2480 d 11:26 ago) @ daryazyatina Posting: # 18844 Views: 15,248 |
|
Hello everyone, I should note, that this formula was published in Ukrainian Pharmacopoeia 1st edition (obsolete since 2016) with reference to Liu and Chow 2008 book. Now, while planning a study, the sponsor has applied the formula (referring to Pharmacopoeia) and consequently argue, that my estimate for the sample size (calculated with PowerTOST) is unnecessarily high. So in my search for an answer I have found this thread. Thank you everyone for the answers! |