Suggestions / Sneak Preview [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2014-08-13 18:42 (4335 d 17:06 ago) – Posting: # 13376
Views: 22,387

Dear Detlew,

that’s really a gem! :thumb up:
I wasn’t aware that 1.1-13 is already on CRAN. See also some remarks I just added to my previous post about a CL of the GMR. ;-)


Edit: Some additions…

      # stepwise growing vectors is R-Inferno Circle 2

      # but here we dont know the dimension in advance. Right?


Unavoidable.

Sometimes people don’t know which version they (or their IT guys) installed. Maybe it’s safer to replace

    # can use allways power2.TOST() if PowerTOST V1.1-13 is used
    # else an if() construct is necessary switching to power.TOST()
    # in case of des=="paired"

    pwrN <- power2.TOST(CV=CV, n=n, theta0=GMR, design=des)


by

    if(packageVersion("PowerTOST") < "1.1.13" & des == "paired") {
      pwrN <- power.TOST(CV=CV, n=Ns[j], theta0=GMR, design=des)
    } else {
      pwrN <- power2.TOST(CV=CV, n=n, theta0=GMR, design=des)
    }


Most input errors are already trapped by PowerTOST. At the beginning of Sens() add:
  if(pwr.min < 0.05) stop("Minimum acceptable power must not be <0.05!")
… otherwise uniroot() throws an error.
Consider adding ... to transfer optional parameters (theta1,…).

Tested:
R 3.0.2 (2013-09-25), PowerTOST 1.1-12 (2014-07-02) on 32bit Vista Business SP2
R 3.1.1 (2014-07-10), PowerTOST 1.1-13 (2014-08-12) on 64bit Win7 Pro SP1


Sneak Preview

[image]

[image]

To do: Explore the loss of power caused by lower variability. Very important for scaling. In the plots I have set the lower limit to 50% of the expected CV.

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,655 posts in 4,993 threads, 1,570 registered users;
295 visitors (0 registered, 295 guests [including 11 identified bots]).
Forum time: 11:48 CEST (Europe/Vienna)

Don’t compromise yourself.
You are all you’ve got.    Janis Joplin

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