Description Usage Arguments Value Author(s) See Also
It creates a plot or a table for the sample size, type I error rate, and power versus standard deviation. If desired, it may represent several actual expected value differences for comparison.
1 2  | 
delta | 
 Number. Expectation difference of two samples.  | 
Delta | 
 Number/ vector of numbers. Relevant difference of expected values in the alternative hypothesis.  | 
sd | 
 Number. Assumed standard deviation of the data.  | 
test | 
 Number. What type of hypothesis test should be performed. One-sided (Superiority/   | 
alpha | 
 Number. Desired alpha-level of the test.  | 
beta | 
 Number. Acceptable beta error of the test.  | 
prop | 
 Two numbers/ Vector of numbers. Timing of the internal pilot study depending on the originally  | 
adj | 
 Logical. Should the one-sample variance, calculated in the internal pilot study, be adjusted?  | 
rule | 
 Logical. Should the sample size adjustment rule be applied by Wittes and Brittain?  | 
nbound | 
 Number. Upper limit of the sample size.  | 
simu | 
 Number. How many simulations should be performed?  | 
create | 
 "plot" if a plot is to be returned.  | 
It returns a plot.
Csilla van Lunteren
pow
ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.