power.inf() [BE/BA News]

posted by Helmut Homepage – Vienna, Austria, 2012-10-09 15:38 (4999 d 07:57 ago) – Posting: # 9355
Views: 14,816

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,654 posts in 4,992 threads, 1,571 registered users;
144 visitors (0 registered, 144 guests [including 9 identified bots]).
Forum time: 23:36 CEST (Europe/Vienna)

Scientists often have a naïve faith that
if only they could discover enough facts about a problem,
these facts would somehow arrange themselves
in a compelling and true solution.    Theodosius Dobzhansky

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