mittyri ★★ Russia, 2016-02-01 23:33 (3370 d 14:16 ago) Posting: # 15912 Views: 6,362 |
|
Dear All, Could you please enlighten me about the following issue. May be it was discussed somewhere but I didn't find. Some R code: x1 <- seq(0.25, 0.5, length.out=100) The resulted plot: ![]() There is a discontinuity at CV=0.3. I cannot figure out the reason. The limits are widening smoothly from this point. PS: some intersection with Shuanghe's post ![]() Edit: Category changed. [Helmut] — Kind regards, Mittyri |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2016-02-02 01:23 (3370 d 12:25 ago) @ mittyri Posting: # 15913 Views: 5,251 |
|
Hi Mittyri, ❝ There is a discontinuity at CV=0.3. I cannot figure out the reason. You introduced it yourself with the highlighted parts of the code: ❝ ❝ y2[j] <- power.scABEL(CV=x1[j], theta0=GMR, n=n, des=des[2], reg="EMA") ❝ } ❝ if (x1[j] <= 0.3) { ❝ y1[j] <- power.TOST(CV=x1[j], theta0=GMR, n=n, des= des[1]) ❝ y2[j] <- power.TOST(CV=x1[j], theta0=GMR, n=n, des= des[2]) ❝ } If you indend to go with reference-scaling you have to state that in the protocol. Based on that you perform the sample size estimation, but always with sampleN.scABEL() . Once the study is done, you may scale or not (dependent on CVwR). Hence, the only fair comparison would be ABE (power.TOST if you don’t intend to scale) with ABEL (power.scABEL ) over the entire range of CVs, like this:
![]() With your code you would jump at 0.30 from the red line (ABE) to the blue line (ABEL). Note that even at CV 0.25 power of ABEL is slightly larger than the one of ABE since there is small chance that you are allowed to scale. That’s the tricky part with reference scaling. The simulation – as the scaling model itself* – is based on the true (but unknown) θ0 and σwR. By pure chance (CVwR >0.30) you will be allowed to scale although the drug is not highly variable (σwR ≤0.2936). This is the (main?) reason behind the inflation of the type I error. Another story.
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
ElMaestro ★★★ Denmark, 2016-02-02 17:28 (3369 d 20:21 ago) @ mittyri Posting: # 15916 Views: 5,136 |
|
And now we might not even need simulations - see here. — Pass or fail! ElMaestro |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2016-02-02 17:39 (3369 d 20:10 ago) @ ElMaestro Posting: # 15917 Views: 5,138 |
|
Hi ElMaestro, ❝ And now we might not even need simulations - see here. Did you read it? Interesting comparison, but all restrictions (on the PE, 50% cap for the EMA) were lifted. Some of their simulations (hey, in R!) had run-times of more than 24 hours… — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
ElMaestro ★★★ Denmark, 2016-02-02 18:09 (3369 d 19:40 ago) @ Helmut Posting: # 15918 Views: 5,090 |
|
Hi Hötzi, ❝ Did you read it? Interesting comparison, but all restrictions (on the PE, 50% cap for the EMA) were lifted. Some of their simulations (hey, in R!) had run-times of more than 24 hours… No I have not read it. I am busy with stuff, and reckoning that I might not understand it anyway this paper has not made it to the top of my to-do list. But I will give it a go, I think. — Pass or fail! ElMaestro |