Changelog
Source:NEWS.md
toxval 2.0.0 (2026-10-30)
toxval 2.0.0 restructures the package so that every model class is handled the same way and every metric returns the same shape. Code written for toxval 1.0.0 needs the changes listed under Breaking changes.
Breaking changes
-
ecx()andnsec()return atoxvaltibble rather than a vector with attributes. The per-realisation values thatposterior = TRUEreturned are in adrawslist column withdraws = TRUE;posterioris defunct. - Both directions are estimated every time and reported in the
directioncolumn.hormesis_defandhormeare deprecated and ignored (#20). -
ecx_valis deprecated in favour ofproportion, a proportion rather than a percentage, so an EC10 isproportion = 0.1rather thanecx_val = 10. Undertype = "direct"the response value is supplied asreference(#3). -
type = "relative"now measures from the control to the asymptote of the fitted curve, and warns when supplied. What it measured before is nowtype = "range"(#19). - The ECx and NSEC references are computed for each realisation from that realisation’s own control, so estimates differ from toxval 1.0.0 (#19, #49).
-
nsec_multi()is defunct.nsec()gives one row per response and direction for a multivariatebrmsfit; see?nsec_multifor how to convert a call. -
curveidandby_groupare deprecated. Supplygroup_varto get one row per level. - Arguments after
objectmust be named, and a misspelt or unused argument is an error rather than being ignored (#55). - The default
resolutionis 500 for every model class, so estimates can differ slightly from toxval 1.0.0. - The intervals of
nsec()for adrcfit come from parametric bootstrap replicates rather than from inverting a confidence band (#43).
Features
-
ecx()supportsdrcfits. The realisations of adrcfit are parametric bootstrap replicates, so supplyseedfor reproducible results. A parameter that must be positive, such aseinLL.4(), is drawn on the log scale (#76). -
bayesnecis suggested rather than imported.ecx()andnsec()accept model averages (bayesmanecfit) as well as single fits (bayesnecfit) whenbayesnecis installed (#68). -
nsec()gainstype, which names the span thatecnsecis a proportion of, andanchor, which sets the control of a model-averaged fit. - New
x_controlargument. The control response is predicted at the lowest concentration in the data by default rather than at the first grid value (#73). - A warning is given when an interval limit is censored at the highest concentration, or when realisations are excluded from the summary (#24).
-
xformmay be a decreasing function (#69). - New
toxval_predict()generic andnew_toxval_pred()constructor. Support for a new model class is added by writing atoxval_predict()method that returns atoxval_pred, the object every metric computes on. See?toxval_predictand?new_toxval_pred. - New vignettes define the ECx and the NSEC.