power.inf() [BE/BA News]

posted by Helmut Homepage – Vienna, Austria, 2012-10-09 15:38 (4657 d 00:46 ago) – Posting: # 9355
Views: 12,838

Hi Detlew!

❝ Bug or a feature? :cool:


power.noninf(alpha=0.05, CV=0.298, margin=0.8, theta0=0.752, n=277)
# [1] 0.8010803


Feature! I didn’t realize that it’s possible to enter the house through the back door. :-D Of course one can cheat as well (exchanging the limit with the ratio):
sampleN.noninf(alpha=0.05, CV=0.298, theta0=0.8, margin=0.752)
++++++++++++ Non-inferiority test +++++++++++++
            Sample size estimation
-----------------------------------------------
Study design:  2x2 crossover
log-transformed data (multiplicative model)

alpha = 0.05, target power = 0.8
Non-inf. margin   = 0.752
Null (true) ratio = 0.8,  CV = 0.298

Sample size (total)
 n     power
278   0.802337


Code from this thread (replacing the calls to internal PowerTOST functions to PowerTOST:::func_to_call, f.i. PowerTOST:::.design.no(design)) gives me 228


Hhm, can you be a little bit more specific (= for dummies like me)?

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
23,428 posts in 4,929 threads, 1,682 registered users;
68 visitors (0 registered, 68 guests [including 11 identified bots]).
Forum time: 16:25 CEST (Europe/Vienna)

To know that we know what we know,
and to know that we do not know what we do not know,
that is true knowledge.    Nicolaus Copernicus

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5