All sampling functions in sondage return objects inheriting from class
"sondage_sample". These objects store the realized sample together with
the design-defining quantities needed by the query generics.
Details
sondage_sample objects always contain these fields:
$sampleRealized sample indices. For
nrep = 1, an integer vector. Fornrep > 1, a matrix for fixed-size designs or a list of integer vectors for random-size designs.$nTarget or expected sample size. Integer for fixed-size designs; may be non-integer for random-size designs such as Poisson, Bernoulli, or stratified cube with non-integer stratum totals.
$NPopulation size.
$methodMethod name string used to generate the design.
$fixed_sizeLogical flag indicating whether the realized sample size is fixed by design.
Without-replacement ("wor") objects additionally contain:
$pikDesign-defining inclusion probability vector. For methods with exact first-order guarantees, this equals the true first-order inclusion probabilities. For order-sampling methods such as
"sps"and"pareto", this is the stored target vector.
With-replacement ("wr") objects additionally contain:
$probSelection probability vector for each draw.
$hitsRealized hit counts by unit. For
nrep = 1, an integer vector of lengthN. Fornrep > 1, anN x nrepinteger matrix.
The class vector also records the design family:
c("equal_prob", "wor", "sondage_sample")Equal-probability sampling without replacement.
c("equal_prob", "wr", "sondage_sample")Equal-probability sampling with replacement.
c("unequal_prob", "wor", "sondage_sample")Unequal-probability sampling without replacement, including balanced sampling.
c("unequal_prob", "wr", "sondage_sample")Unequal-probability sampling with replacement or minimum replacement.