Achieved precision for a two-phase design you already have, the inverse
of n_twophase().
Usage
prec_twophase(frame, ...)
# Default S3 method
prec_twophase(
frame,
...,
n_phase1,
phase1_cost = 1,
between = NULL,
mu = NULL,
N = Inf,
alpha = 0.05,
phase1_deff = 1,
resp_rate = 1,
fixed_cost = 0,
plan = NULL
)
# S3 method for class 'svyplan_twophase'
prec_twophase(frame, ...)Arguments
- frame
For the default method: the phase-2 stratum frame described in
n_twophase(), with an extranucolumn giving the subsampling fraction actually used in each stratum. Forsvyplan_twophaseobjects: a result fromn_twophase().- ...
Additional arguments passed to methods. Unused arguments are rejected.
- n_phase1
Phase-1 sample size, counted as units issued.
nuis a share of that same base, so with phase-1 nonresponse the largest usablenuisresp_raterather than 1.- phase1_cost, between, mu, N, phase1_deff, resp_rate, fixed_cost, plan
As in
n_twophase(). The per-stratum phase-2 design effect and response rate travel in the frame'sdeffandresp_ratecolumns, as they do there.- alpha
Significance level for the reported margin of error. The default is 0.05. A two-phase design is sized against a cv, but the half-width it achieves follows from the standard error either way, so
$moeis reported alongside$cv.
Value
A svyplan_prec object with type = "twophase", carrying
$se, $moe, $rmoe, $cv, and the per-stratum table in $detail.
$moe is the alpha-level half-width z * $se, and $rmoe states it
as a fraction of the population mean the design estimates.
See also
n_twophase() for the inverse.
Other two-phase design functions:
n_twophase()