Skip to content

Commit

Permalink
S3 interface for dist_delay. (#95)
Browse files Browse the repository at this point in the history
- dispatch must be revised!
  • Loading branch information
Tim-TU committed Feb 4, 2021
1 parent 5db1444 commit 31c16be
Show file tree
Hide file tree
Showing 9 changed files with 496 additions and 164 deletions.
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ S3method(confint_betabinom,wt_model_estimation_list)
S3method(confint_fisher,default)
S3method(confint_fisher,wt_ml_estimation)
S3method(confint_fisher,wt_model)
S3method(dist_delay,default)
S3method(dist_delay,wt_mcs_delay_data)
S3method(estimate_cdf,default)
S3method(estimate_cdf,wt_reliability_data)
S3method(mixmod_em,default)
Expand Down Expand Up @@ -43,6 +45,8 @@ S3method(plot_prob,wt_rank_regression)
S3method(plot_prob_vis,ggplot)
S3method(plot_prob_vis,plotly)
S3method(print,wt_cdf_estimation)
S3method(print,wt_delay_estimation)
S3method(print,wt_delay_estimation_list)
S3method(print,wt_em_results)
S3method(print,wt_mcs_delay_data)
S3method(print,wt_mcs_mileage_data)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
* `mcs_delay()`: Changed name of output column `time` to `x` (in accordance with `reliability_data()`).

## New Features
* `dist_delay()` is now an S3 generic. `dist_delay()` becomes `dist_delay.default()`. Added `dist_delay.wt_mcs_delay_data()`.
* Added `print.wt_delay_estimation()` for one delay and and `print.wt_delay_estimation_list()` for multiple delays.
* `dist_delay()` now supports the estimation of multiple delay distributions at once.
* Added `print.wt_mcs_delay_data()` and `print.wt_mcs_mileage_data()`.
* Added `mcs_delay_data()`: Create consistent MCS data for `mcs_delay()`.
* Added `mcs_mileage_data()`: Create consistent MCS data for `mcs_mileage()`.
* `confint_betabinom()`: Methods `"kaplan"` and `"nelson"` of `estimate_cdf()` can be used for beta-binomial confidence bounds.

## Minor Improvements and bug fixes
* The object returned by `dist_delay()` know has class `wt_delay_estimation` or `wt_delay_estimation_list`.
* Fixed bug in `plot_conf()`: Wrong confidence bounds were displayed for `direction = "x"` (#181).
* Fixed bug in `plot_conf()`: `plot_method = "ggplot2"` and exactly one method in `estimate_cdf()` resulted in an error (#182).
* Fixed bug in `reliability_data()`: Using `!!` syntax with arguments `x` and `status` resulted in an error.
Expand Down
Loading

0 comments on commit 31c16be

Please sign in to comment.