power.inf() [BE/BA News]

posted by Helmut Homepage – Vienna, Austria, 2012-10-09 15:38 (4599 d 17:20 ago) – Posting: # 9355
Views: 11,986

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,424 posts in 4,927 threads, 1,670 registered users;
85 visitors (0 registered, 85 guests [including 10 identified bots]).
Forum time: 08:59 CEST (Europe/Vienna)

Only dead fish go with the current.    Scuba divers' proverb

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