Repository navigation
toxval 2.0.0 restructures the package so that every model class is handled the same way and every metric returns the same shape.
This is a breaking release: code written for toxval 1.0.0 needs changes, listed below and in NEWS.md.
Highlights
ecx()andnsec()return atoxvaltibble with one row per metric, direction and group, forbrms,drcandbayesnecfits.- Both the decreasing and the increasing direction are estimated every time.
ecx()now supportsdrcfits, using parametric bootstrap replicates.bayesnecis now suggested rather than imported. When it is installed,ecx()andnsec()accept single fits (bayesnecfit) and model averages (bayesmanecfit).- The new
toxval_predict()generic andnew_toxval_pred()constructor let a new model class be supported by writing one method. - New vignettes define the ECx and the NSEC.
Breaking changes
ecx_valis deprecated in favour ofproportion, so an EC10 isproportion = 0.1.type = "relative"now measures to the asymptote of the fitted curve. What it measured before istype = "range".posteriorandnsec_multi()are defunct. Usedraws = TRUE, andnsec()on a multivariate fit.hormesis_def,horme,curveidandby_groupare deprecated. Usegroup_varfor grouped fits.- Arguments after
objectmust be named, and an unused argument is an error. - Each ECx and NSEC reference is computed from its realisation's own control, so estimates differ from toxval 1.0.0.
See NEWS.md for the full list of changes.