d_labes ★★★ Berlin, Germany, 2009-11-23 15:32 (5635 d 05:09 ago) Posting: # 4374 Views: 14,176 |
|
Dear All! In the era of 'Appelssstrudel' and Owen's Q-function as implemented in R (see here) R-users don't have the necessity to use approximations but should calculate always exact power and sample size! Since other designs (parallel group, cross-over with more than 2 formulations, replicate designs) used occasionally in BE studies also rely on the two-one-sided t-tests procedure (TOST) here comes my R-super-code:
# -- The functions of normal-, t-distributions and integrate() -------------- Continuation follows. Use it on your own risk! The author does not take any responsibility for damage of your computer, your career or of the world ![]() — Regards, Detlew |
d_labes ★★★ Berlin, Germany, 2009-11-23 15:38 (5635 d 05:03 ago) @ d_labes Posting: # 4375 Views: 12,098 |
|
Dear All! Here comes part II of the story:
# a bunch of functions to get the design characteristics Continuation follows. Again: Use it on your own risk! The author does not take any responsibility for damage of your computer, your career or of the world ![]() — Regards, Detlew |
d_labes ★★★ Berlin, Germany, 2009-11-23 15:50 (5635 d 04:51 ago) @ d_labes Posting: # 4376 Views: 11,725 |
|
Dear All! Here comes part III of the story. Puzzling all the helpers together we obtain:
# ----- helper functions for sampleN.TOST --------------------------- Again: Use it on your own risk! The author does not take any responsibility for damage of your computer, your career or of the world ![]() — Regards, Detlew |
d_labes ★★★ Berlin, Germany, 2009-11-23 15:57 (5635 d 04:43 ago) @ d_labes Posting: # 4378 Views: 11,831 |
|
Dear All! Ok, ok, I will quit with this "Eierlegende Wollmilchsau".
# -------------------------------------------------------------------------- The function .approx.power.TOST() not shown here is the code using non-central t-approximation for the power. The whole code is released under the copy left (aka GPL). Eventually there is someone out there to tying together all this snippets into a package, for christmas ![]() — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2009-11-23 16:13 (5635 d 04:28 ago) @ d_labes Posting: # 4379 Views: 12,246 |
|
Dear D. Labes, wow, what a monster! In the meantime I wouldn't call you an One note: The forum's scripts remove the backslash '\\' (both in the preview and at posting) due to security reasons [PHP-function stripslashes() ]. You used them in a couple of lines (mainly in the cat() -statements to force a line-feed in the output). Can you please edit your post and insert double backslashes at the right places - only the first one will be removed, and users may copy-and-paste the code afterwards. THX.— 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, 2009-11-23 16:19 (5635 d 04:22 ago) @ Helmut Posting: # 4380 Views: 11,747 |
|
Dear Helmut, THX for the hint. Meanwhile I had noticed this. But for each click on Preview one backslash is eaten ![]() — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2009-11-23 16:28 (5635 d 04:13 ago) @ d_labes Posting: # 4381 Views: 11,837 |
|
Dear D. Labes! ❝ […] But for each click on Preview one backslash is eaten Yes, I know, sorry. It’s unavoidable, unless a code-wrapper like GeShi is used. Although it’s implemented in the current version 2.1.1 of ‘my little forum’, I opted to stay within the 1.7.6-branch due to performance reasons. We are working on a solution in version 1.7.7. — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |