PowerTOST <1.2.7? [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2015-08-19 13:44 (3954 d 15:36 ago) – Posting: # 15304
Views: 13,373

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,654 posts in 4,992 threads, 1,570 registered users;
267 visitors (0 registered, 267 guests [including 131 identified bots]).
Forum time: 05:20 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