PowerTOST <1.2.7? [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2015-08-19 13:44 (3462 d 05:18 ago) – Posting: # 15304
Views: 11,285

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,376 posts in 4,912 threads, 1,662 registered users;
248 visitors (0 registered, 248 guests [including 12 identified bots]).
Forum time: 18:02 CET (Europe/Vienna)

There are sadistic scientists who hurry to hunt down errors
instead of establishing the truth.    Marie Curie

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