Tutorial (from the start) [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2020-05-08 13:08 (142 d 12:41 ago) – Posting: # 21408
Views: 4,529

Hi Alyssa,

» Thanks for the detailed tutorial!

Welcome.

» I was trying to follow your command and out in the powerTOST, however, i cant get the sample size estimation. May i know what has gone wrong?

Your results show that you did not attach the library (see Detlew’s post). However, this part of the code alone will still not work because the CV is not specified. You would get:
Error in sampleN.scABEL(CV = CV, design = res$design[j], targetpower = res$target[j],  :
  object 'CV' not found

I assumed that you will execute the entire code of the tutorial step by step. If you want only this part and/or the power analysis at the end, start with:

library(PowerTOST)
CVwR <- 0.426
CV   <- rep(CVwR, 2)




PS: R-terminology.

Dif-tor heh smusma 🖖
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

Activity
 Admin contact
21,079 posts in 4,396 threads, 1,468 registered users;
online 5 (0 registered, 5 guests [including 3 identified bots]).
Forum time: Monday 01:50 CEST (Europe/Vienna)

A central lesson of science is that to understand complex issues
(or even simple ones), we must try to free our minds of dogma and
to guarantee the freedom to publish, to contradict, and to experiment.
Arguments from authority are unacceptable.    Carl Sagan

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