BE-proff ● 2015-08-13 15:44 (3504 d 01:03 ago) Posting: # 15255 Views: 13,710 |
|
Dear All, Can anybody share R-code for power calculation using? ![]()
|
Helmut ★★★ ![]() ![]() Vienna, Austria, 2015-08-13 15:59 (3504 d 00:48 ago) @ BE-proff Posting: # 15256 Views: 12,386 |
|
Hi BE-proff, do you mean sumfink which is not covered by PowerTOST ’s functions
In your list some parameters are missing which are required:
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
BE-proff ● 2015-08-13 16:44 (3504 d 00:03 ago) @ Helmut Posting: # 15257 Views: 12,311 |
|
Hi Helmut, We say - to re-invent bicycle ![]() I will accept all available scripts (if possible) but for BE studies I need cross-over, parallel, replicative designs (judging on PASS). As for statistic methods - sorry but I am not strong in them ![]() |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2015-08-13 16:58 (3503 d 23:49 ago) @ BE-proff Posting: # 15258 Views: 12,442 |
|
Hi BE-proff, ❝ I will accept all available scripts (if possible) but for BE studies I need cross-over, parallel, replicative designs (judging on PASS). After library(PowerTOST) type help(package=PowerTOST) . All linked functions contain not only descriptions of required parameters (and their defaults – which you could leave out) but at the end some examples. Compare them to PASS (or the other way ’round).Edit: Code to explore this example.
For the noncentral t I got…
Occasionally slight differences for the parallel design example.
— 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, 2015-08-14 12:29 (3503 d 04:18 ago) @ Helmut Posting: # 15263 Views: 12,457 |
|
Dear Helmut, ❝ Occasionally slight differences for the parallel design example. As you might imagine: that makes me (as a nitpicker) a little bit nervous. But of course I trust in my software even if I myself had written it. I only don't trust in any computers ![]() Fired up my beasty beast ![]() Used the prudish beauty ![]() Proc Power; Let's look at the results (5 decimals, PASS 14 from your link): ------ power ------ Note especially the differences between help page and actually calculated for PASS12. Victory all a long the line ![]() ![]() "Enjoy the best sample size software on the market" (PASS12 startup screen). Power: That which statisticians are always calculating but never have. Guernsey McPerson's "The Devil's Drug Development Dictionaries" — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2015-08-14 17:34 (3502 d 23:13 ago) @ d_labes Posting: # 15269 Views: 12,109 |
|
Dear Detlew, ❝ Let's look at the results (5 decimals, PASS 14 from your link): […] ❝ Note especially the differences between help page and actually calculated for PASS12. Amazing. At least the algo didn’t change between v12 and 14. Seems that the the guy writing the v12 help page wasn’t particular proficient in copy/pasting. No QA in place? — 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, 2015-08-14 12:50 (3503 d 03:57 ago) @ BE-proff Posting: # 15264 Views: 12,106 |
|
Dear BE-proff, ❝ As for statistic methods - sorry but I am not strong in them Beware! Here you are on very slippery ground. Power calculation / sample size estimation are irresolvable connected to the statistical test methods you intend to use in the evaluation of your study results. The test (method) determines how the power hast to be calculated. It determines further the parameters necessary to do power calculations Without an at least basic understanding of the statistics to use you can't IMHO do any reliable power calculation / sample size estimation. A cook book like approach as requested above doesn't work ![]() I highly recommend you the lectures/presentations Helmut has given on many places around the world. Especially those about sample size. If you need some guidance how to use PowerTOST you may also search this forum. There are many discussions with that topic out there. Have a look f.i. into this post. — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2015-08-14 18:41 (3502 d 22:06 ago) @ d_labes Posting: # 15270 Views: 12,441 |
|
Dear Detlew and BE-proff, ❝ Beware! Here you are on very slippery ground. Full ACK! ❝ Have a look f.i. into this post. THX for pointing to this oldie! Below an advanced example. Sometimes both AUC and Cmax are highly variable. According to the EMA we are allowed to widen the limits only for the latter. Which PK-metric will drive the sample size? How large should it be? Which power can we expect for the other metric? How far can T deviate from R whilst still keeping power?
If we would be allowed to scale both, we would perform the study in 30 subjects and the T could not deviate more than ~10% from R in order to obtain ~80% power. OK, let’s say AUC is not highly variable (CV 0.25) and we assume a T/R-ratio of 0.95. CV of Cmax is 0.35 (still T/R 0.90):
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
mittyri ★★ Russia, 2015-08-14 21:40 (3502 d 19:07 ago) @ Helmut Posting: # 15271 Views: 12,300 |
|
Dear Helmut, Detlew and BE-proff! Helmut, THX a lot for this great code! I think the version for 2X2X2 would be also useful (your code a little bit changed): library(PowerTOST) Detlew, what about implementation in PowerTOST both branches? ![]() PS: Helmut&Detlew, it seems sometimes that you're thinking on R ![]() — Kind regards, Mittyri |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2015-08-15 05:22 (3502 d 11:25 ago) @ mittyri Posting: # 15272 Views: 12,173 |
|
Hi Mittyri, hey good idea! I merged our pasta; some cosmetics. Added a “clinical justification” flag (T|F) which forces to ABE for Cmax if FALSE: ###### input section ###### My first example:
My second example:
And yours:
❝ Detlew, what about implementation in PowerTOST both branches? I would say that’s overkill. In PowerTOST almost everything is vectorized (i.e., you can assess different CVs for T and R, calculate power for unbalanced sequences, etc.). I wouldn’t do that.One of the contributing authors of PowerTOST (Ben) is working on power for correlated PK-metrics. I guess that’s next we will see.❝ PS: Helmut&Detlew, it seems sometimes that you're thinking on R Better than to think in R. ![]() To do: Force sample sizes to 12 for low CVs (according to GLs), reg <- "ANVISA" (ABEL if CV >0.4), different CVs for T and R in replicate designs, throw a warning if in a RTR|TRT-design the estimated sample size is <24.— 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, 2015-08-17 10:45 (3500 d 06:02 ago) @ Helmut Posting: # 15276 Views: 11,668 |
|
Dear Helmut, dear Mittyri, ❝ ❝ Detlew, what about implementation in PowerTOST both branches? ❝ ❝ I would say that’s overkill. In First: Good job ![]() Second: IMHO much too much coding. Why not doing simply 2 sampleN.xyz() calls and decide with own brain which metric drives the sample size? And voila - you have the first 5 results lines of the examples above.A third function call of power.xyz() will give you the information in the sixth line of your examples (power of the metric not driving the sample size at choosen sample size). If the last information, lowest GMR, is really needed is a matter of taste. IMHO it's only "nice to know". Educating regulators with that information would postulate that they read the sample size estimation chapter of the study protocol. I strongly doubt ... ![]() Thus, third: Full ACK with Helmut: It's overkill. BTW: Lowest GMR which assures target power reminds me to Dave's BOSS button in FARTSSIE ![]() — Regards, Detlew |
BE-proff ● 2015-08-17 10:55 (3500 d 05:52 ago) @ Helmut Posting: # 15277 Views: 11,621 |
|
Hello Helmut, Really great job! ![]() I am taking off my hat to you... ![]() |