designEst | R Documentation |
Find the group size s for a fixed number of groups n and an assumed true proportion p.tr, for which the mean squared error (MSE) of the point estimator is minimal and bias is within a restriction.
designEst(n, smax, p.tr, biasrest = 0.05)
n |
integer specifying the fixed number of groups. |
smax |
integer specifying the maximum group size allowed in the planning of the design. |
p.tr |
assumed true proportion of the "positive" trait in the population, specified as a value between 0 and 1. |
biasrest |
a value between 0 and 1 specifying the absolute bias maximally allowed. |
Swallow (1985) recommends the use of the upper bound of
the expected range of the true proportion p.tr for optimization
of the design. For further details, see Swallow (1985). Note that the
specified number of groups must be less than n=1020
.
A list containing:
call |
the function call |
result |
a data frame containing:
|
bias.reached |
a logical value indicating whether the bias restriction biasrest was violated. |
smax.reached |
a logical value indicating whether the maximum group size allowed smax was reached. |
This function was originally written by Frank Schaarschmidt
as the estDesign
function for the binGroup
package. Minor
modifications were made for inclusion in the binGroup2
package.
Swallow1985binGroup2
designPower
for choice of the group testing
design according to the power in a hypothesis test.
Other estimation functions:
designPower()
,
gtPower()
,
gtTest()
,
gtWidth()
,
propCI()
,
propDiffCI()
# Compare to Table 1 in Swallow (1985):
designEst(n = 10, smax = 100, p.tr = 0.001)
designEst(n = 10, smax = 100, p.tr = 0.01)
designEst(n = 25, smax = 100, p.tr = 0.05)
designEst(n = 40, smax = 100, p.tr = 0.25)
designEst(n = 200, smax = 100, p.tr = 0.30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.