n_fix,FarringtonManning-method {blindrecalc} | R Documentation |
Fixed Sample Size
Description
Returns the sample size of a fixed design without sample size recalculation.
Usage
## S4 method for signature 'FarringtonManning'
n_fix(design, nuisance, rounded = TRUE, ...)
Arguments
design |
Object of class |
nuisance |
Value of the nuisance parameter. For the Farrington-Manning test this is the overall response rate. |
rounded |
Whether the calculated sample size should be rounded up such that the allocation ratio is preserved. |
... |
Further optional arguments. |
Details
The method is only vectorized in either nuisance
or n1
.
Value
One value of the fixed sample size for every nuisance parameter and every value of n1.
Examples
d <- setupFarringtonManning(alpha = 0.025, beta = 0.2, r = 1,
delta = 0, delta_NI = 0.25)
n_fix(d, nuisance = 0.3)
[Package blindrecalc version 1.0.1 Index]