Skip to content

predict.fitdists() gains samples and save_to arguments - #182

Open
joethorley wants to merge 1 commit into
devfrom
joethorley/issue452
Open

predict.fitdists() gains samples and save_to arguments#182
joethorley wants to merge 1 commit into
devfrom
joethorley/issue452

Conversation

@joethorley

Copy link
Copy Markdown
Member

Closes bcgov#452

predict.fitdists() is a thin wrapper on ssd_hc() but was missing two arguments that ssd_hc.fitdists() exposes: samples and save_to. They are now added (with the same defaults, samples = FALSE and save_to = NULL) and passed straight through, so predict() can return the bootstrap samples list-column and save the bootstrap datasets/estimates to disk.

Tests

  • predict(..., samples = TRUE) returns a samples column identical to the equivalent ssd_hc() call.
  • predict(..., save_to = dir) writes the same bootstrap data/estimate files as ssd_hc().

Full test suite passes locally (1349 tests, 0 failures, NOT_CRAN=true).

Note: predict.fitburrlioz() similarly lags ssd_hc.fitburrlioz() (missing samples/save_to, and its parametric default differs). Left out of scope here since the issue targets predict.fitdists(); happy to follow up if wanted.

🤖 Generated with Claude Code

Fixes bcgov#452

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant