Releases: Tim-TU/weibulltools
Releases · Tim-TU/weibulltools
weibulltools 2.0.0
Breaking Changes
- Package now depends on R(>= 3.5.0)
Non-Parametric Failure Probabilities
mr_method()
: Deprecated, useestimate_cdf()
instead. Renamed output columncharacteristic
withx
. Set default value forid
toNULL
.johnson_method()
: Deprecated, useestimate_cdf()
instead. Renamed output columncharacteristic
withx
. Set default value forid
toNULL
.kaplan_method()
: Deprecated, useestimate_cdf()
instead. Renamed output columncharacteristic
withx
. Set default value forid
toNULL
.nelson_method()
: Deprecated, useestimate_cdf()
instead. Renamed output columncharacteristic
withx
. Set default value forid
toNULL
.plot_prob.default()
(formerplot_prob()
): Renamedevent
withstatus
.plot_prob_mix()
: Deprecated, useplot_prob()
instead. Removed default valueNULL
for argumentmix_output
. Renamedevent
withstatus
.
Parametric Models
ml_estimation.default()
(formerml_estimation()
): Renamedevent
withstatus
. Removeddetails
. Changed names and contents of list elements in output. See?ml_estimation
.loglik_function
: Renamedevent
withstatus
. Renamedpars
withdist_params
.rank_regression.default()
(formerrank_regression()
): Renamedevent
withstatus
. Removeddetails
. Changed names and contents of list elements in output. See?rank_regression
.mixmod_em.default()
(formermixmod_em()
): Renamedevent
withstatus
. Removedpost
.mixmod_regression.default()
(formermixmod_regression()
): Renamedevent
withstatus
. Added argumentsk
andcontrol
, which provide finer control over the segmentation process. Expect default setting to provide other results than in prior versions.predict_prob()
: Renamedloc_sc_params
withdist_params
.predict_quantile()
: Renamedloc_sc_params
withdist_params
.plot_mod.default()
(formerplot_mod()
): Renamedevent
withstatus
. Renamedloc_sc_params
withdist_params
. Removedy
.plot_mod_mix()
: Deprecated, useplot_mod()
instead. Renamedevent
withstatus
.plot_pop()
: Added argumenttol
to restrict the range of failure probabilities. Removed argumentcolor
. Renamed argumentparams
todist_params_tbl
, which only supports location and scale parameters (also fordistribution = "weibull"
). Changed behavior ofdist_params_tbl
: Atibble
is now recommended instead of a vector.
Confidence Intervals
confint_betabinom.default()
(formerconfint_betabinom()
): Renamedevent
withstatus
. Renamedloc_sc_params
withdist_params
. Added argumentb_lives
which allows the user to specify probabilitiesp
forB_p-lives
to be considered.confint_fisher.default()
(formerconfint_fisher()
): Renamedevent
withstatus
. Renamedloc_sc_params
withdist_params
. Renamedloc_sc_varcov
withdist_varcov
. Added argumentb_lives
which allows the user to specify probabilitiesp
forB_p-lives
to be considered.delta_method()
: Renamedloc_sc_params
withdist_params
. Renamedloc_sc_varcov
withdist_varcov
.plot_conf.default()
(formerplot_conf()
): Switched position of argumentsdirection
anddistribution
.
Monte Carlo Simulation
dist_delay_register()
: Deprecated, usedist_delay()
instead.dist_delay_report()
: Deprecated, usedist_delay()
instead.mcs_delay_register()
: Deprecated, usemcs_delay()
instead. Renamedx
withtime
. Renamedevent
withstatus
. Removedseed
. Removedint_seed
from output list.mcs_delay_report()
: Deprecated, usemcs_delay()
instead. Renamedx
withtime
. Renamedevent
withstatus
. Removedseed
. Removedint_seed
from output list.mcs_delays()
: Deprecated, usemcs_delay()
instead. Renamedx
withtime
. Renamedevent
withstatus
. Removedseed
. Removedint_seed
from output list.dist_mileage()
: Removedevent
. Renamedx
withtime
. Switched position of argumentstime
andmileage
.mcs_mileage()
: Removedevent
. Renamedx
withtime
. Switched position of argumentstime
andmileage
.
New Features
- Added support for ggplot2 in all plot functions. Plot method can be selected in
plot_prob()
orplot_pop()
via argumentplot_method
. - Added
reliability_data()
: Create consistent reliability data. - Added
estimate_cdf()
: Unite functionality ofmr_method()
,johnson_method()
,kaplan_method()
andnelson_method()
. Added optionties.method
formethod = "mr"
, which specifies how ties should be treated. - Support of multiple methods in
estimate_cdf()
and all functions that depend on thecdf_estimation
(rank_regression()
,plot_prob()
,plot_mod()
,plot_conf()
,mixmod_regression()
). plot_prob()
andplot_mod()
are able to handle mixture models.mixmod_regression()
is now more flexible. Argumentk
can be used to control number of subgroups or to determine them in an automatic fashion. Argumentcontrol
provides additional control over the segmentation procedure.- Added
print.wt_rank_regression()
,print.wt_ml_estimation()
,print.wt_model_estimation()
,print.wt_model_estimation_list()
,print.wt_mixmod_regression()
andprint.wt_mixmod_regression_list()
. - Added
vcov.wt_model_estimation()
. - Added
dist_delay()
: Generalizes the distribution-specific modeling of delays. - Added
mcs_delay()
: Generalizes the adjustment of operating times by delays and supports multiple delays at once. - Added lifecycle badges
Introduction of S3 interface
rank_regression()
is now an S3 generic.rank_regression()
becomesrank_regression.default()
. Addedrank_regression.wt_cdf_estimation()
.plot_prob()
is now an S3 generic.plot_prob()
becomesplot_prob.default()
. Addedplot_prob.wt_cdf_estimation()
andplot_prob.wt_model()
.plot_mod()
is now an S3 generic.plot_mod()
becomesplot_mod.default()
. Addedplot_mod.wt_model()
.plot_conf()
is now an S3 generic.plot_conf()
becomesplot_conf.default()
. Addedplot_conf.wt_confint()
.plot_pop()
: Added support for multiple population lines and comparison of two- and three-parametric distributions.
Documentation improvements
- Revised README.
- Revised vignettes.
- Capitalized parameter documentation.
Lifecycle changes
Deprecated
dist_delay_register()
anddist_delay_report()
: Usedist_delay()
instead.mcs_delay_register()
,mcs_delay_report()
andmcs_delays()
: Usemcs_delay()
instead.mr_method()
,johnson_method()
,kaplan_method()
andnelson_method()
: Useestimate_cdf()
instead.plot_prob_mix()
: Useplot_prob()
instead.plot_mod_mix()
: Useplot_mod()
instead.
Removed
calculate_ranks
.mixture_em_cpp
.plot_layout
.
Minor improvements and bug fixes
- Fixed bug inside
plot_mod_mix()
for the case of no mixture distribution. - Fixed bug inside
confint_betabinom()
: many cases near one ->unique()
. - Fixed bug inside
mr_method()
: assigning a rank for the same lifetime. - Fixed bug inside
mixmod_regression
: call tosegmented::segmented.lm()
was incorrect. - Added trace type
"scatter"
and scatter mode"markers"
to plotly plots. delta_method()
,r_squared_profiling()
andloglik_profiling()
were vectorized.