pow,Studentmethod {blindrecalc}  R Documentation 
Calculates the power of designs with blinded sample size recalculation or of fixed designs for one or several values of the nuisance parameter.
## S4 method for signature 'Student'
pow(
design,
n1,
nuisance,
recalculation = TRUE,
iters = 10000,
seed = NULL,
allocation = c("approximate", "exact"),
...
)
design 
Object of class 
n1 
Either the sample size of the first stage (if

nuisance 
Value of the nuisance parameter. For the Student's ttest this is the variance. 
recalculation 
Should the sample size be recalculated after n1 n1 patients are recruited? 
iters 
Number of simulation iterations. 
seed 
Random seed for simulation. 
allocation 
Whether the allocation ratio should be preserved
exactly ( 
... 
Further optional arguments. 
The method is only vectorized in either nuisance
or n1
.
One power value for every nuisance parameter and every value of n1.
d < setupStudent(alpha = .025, beta = .2, r = 1, delta = 3.5, delta_NI = 0,
alternative = "greater", n_max = 156)
pow(d, n1 = 20, nuisance = 5.5, recalculation = TRUE)