PowerTOST <1.2.7? [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2015-08-19 13:44 (3530 d 23:49 ago) – Posting: # 15304
Views: 11,445

Hi IP,

the line
   Loading required package: mvtnorm
is a hint that you are using an outdated version of PowerTOST. Since the first five columns are correct, try this:

library(PowerTOST)
power.TOST(CV=0.262, n=30)        # case 1
# [1] 0.8005133                       my result
power.TOST(CV=0.262, n=c(15, 15)) # case 2
# [1] 0.8005133                       my result


If the first case “works” and you get an error in the second case, try

power2.TOST(CV=0.262, n=c(15, 15))


If you get the correct result this time I suspect that your version is 1.2-5. Try

packageVersion("PowerTOST")

My code requires ≥1.2.6 (2015-01-23). power2.TOST() was depreciated in 1.2.6 and removed in 1.2.7 (2015-06-03); the current version is 1.2.8 (2015-07-10).

In my posts I always presume the current version of R and libraries.

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,700 registered users;
35 visitors (0 registered, 35 guests [including 9 identified bots]).
Forum time: 13:33 CEST (Europe/Vienna)

Do not put your faith in what statistics say until you have carefully
considered what they do not say.    William W. Watt

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