PowerTOST <1.2.7? [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2015-08-19 13:44 (3463 d 14:06 ago) – Posting: # 15304
Views: 11,291

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,379 posts in 4,913 threads, 1,661 registered users;
307 visitors (0 registered, 307 guests [including 15 identified bots]).
Forum time: 02:50 CET (Europe/Vienna)

Statistics is the art of never having to say you’re wrong.
Variance is what any two statisticians are at.    C.J. Bradfield

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