Changelog
Source:NEWS.md
surveybootstrap 0.2.1
- Fixed a warning (“Unknown or uninitialised column:
weight.scale”) that appeared when usingbootstrap.estimates()withrescaled.bootstrap.sample(): the index column was being extracted as a one-column tibble instead of a plain vector, causing tibble’s$accessor to misreport the column as missing - Fixed a deprecation warning from rlang (“Unquoting language objects with
!!!is deprecated”): replaced!!!psu.varswithacross(all_of(...))/all_of(...)throughoutrescaled.bootstrap.sample()andget.rescaled.bootstrap.weights() - Fixed
rescaled.bootstrap.weights()producing column namesboot_weight_rep.1,boot_weight_rep.2, … instead of the documentedboot_weight_1,boot_weight_2, … - Added vignette “The rescaled bootstrap” illustrating the main workflow with the MU284 example data
- Added pkgdown site
-
rescaled.bootstrap.sample()andget.rescaled.bootstrap.weights()now issue a warning when any stratum contains fewer than 2 PSUs (variance cannot be estimated in that case; bootstrap weights for the stratum will be 0) - Added regression tests covering the above bug fixes and the single-PSU warning
surveybootstrap 0.2.0
- Added
get.rescaled.bootstrap.weights(): new function that returns rescaled bootstrap weights (and optionally cluster counts and scaling factors) in a wide data frame, making it straightforward to use the rescaled bootstrap for jackknife-after-bootstrap (JAB) variance estimation -
rescaled.bootstrap.sample()gains aninclude_ccargument; whenTRUEit returns per-rep cluster inclusion counts alongside the weight-scaling factors, which are needed for JAB calculations - Fixed a bug where
bootstrap.estimates()failed silently when used withrescaled.bootstrap.sample(): the weight-scaling column was namedweight_scale(underscore) in the sampler but read asweight.scale(dot) by the estimator, causing weights to collapse tonumeric(0)and all estimates to beNaN/Inf - Expanded test suite: added structural and semantic tests for
rescaled.bootstrap.sample(),srs.bootstrap.sample(),get.rescaled.bootstrap.weights(), andrescaled.bootstrap.weights(); added a regression test that directly catches theweight.scalenaming bug; added tests for theweighted.mean()helper
surveybootstrap 0.0.3
CRAN release: 2023-01-09
- fixed some dependency errors that suddenly arose (explicitly use plyr:: in a few places)
- dropped now-deprecated group_indices_() in favor of cur_group_index()
- changed docs to use Markdown roxygen
- added MU284 dataset for examples and tests
- added examples to exported function docs