Closed bschneidr closed 1 year ago
Addressed by the following update to the C++ code:
cf7a179
This means that if a given stratum has with-replacement sampling, then no variance calculations will be done for later sampling stages within that stratum.
When building the "epi.Rnw" vignette, Thomas noticed the following issue:
I've looked into this, and it's because the C++ code is doing unnecessary variance computations (correct, but unnecessary), in the case of multistage samples where at least one of the earlier stages is without-replacement. Whenever a stage is without replacement, the subsequent stages don't matter, and so the C++ code shouldn't do any variance computations. But right now it is.