Description Usage Arguments Details Value Examples
This method returns an adjusted significance level that can be used such that the actual type I error rate is preserved.
1 2 3 4 5 6 7 8 9 10 11 12  ## S4 method for signature 'ChiSquare'
adjusted_alpha(
design,
n1,
nuisance,
nuis_ass,
precision = 0.001,
gamma = 0,
recalculation,
allocation = c("exact", "approximate"),
...
)

design 
Object of class 
n1 
Either the sample size of the first stage (if

nuisance 
Value of the nuisance parameter in (0,1). For the ChiSquared test this is the overall response rate. 
nuis_ass 
If 
precision 
Value by which the nominal type 1 error rate is reduced in each iteration until the nominal type 1 error rate is preserved. 
gamma 
If 
recalculation 
Should the sample size be recalculated after n1 n1 patients are recruited? 
allocation 
Whether the allocation ratio should be preserved
exactly ( 
... 
Further optional arguments. 
The method is only vectorized in either nuisance
or n1
.
Value of the adjusted significance level for every nuisance parameter and every value of n1.
1 2 3  d < setupChiSquare(alpha = 0.025, beta = 0.2, r = 1, delta = 0.2)
adjusted_alpha(d, n1 = 10, nuisance = 0.3, gamma = 0.001,
nuis_ass = 0.3, precision = 0.001, recalculation = TRUE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.