- Random walk prior for the coefficients changed to a first-order weighted model, following Phillippo et al., so that the expected smoothness accounts for the knot spacing.
- Added discount rate argument
disc_rate
tomean
andrmst()
functions (PR #12)
- Bug fix for models with external data and either nonproportional hazards or covariates on cure probability.
irmst
,hazard_ratio
andhrtime
tidied. Fix of bug inirmst
introduced in v0.8.9, and all now have asample
argument.
- Outputs standardised over the covariate values of a reference population can now be produced using the new
standardise_to()
function.
-
loo
no longer ignores covariates on the cure probability in cure models. -
More internal refactoring of code to produce outputs.
-
Cleaned and simplified internal code for model outputs (
rmst
,survival
etc.). -
rmst
now outputs a tibble, and credible limits in the default output are renamed tolower
andupper
for consistency withsurvival
andhazard
. -
Arrays now allowed for
coef
argument indsurvspline
and related functions.
-
Background hazards in additive hazards models can now be stratified, using the new
backhaz_strata
argument tosurvextrap()
. This argument names stratifying variables (e.g. age group) that should be in both the background hazards and the individual and/or external data. -
Bug fix for
hsurvmspline_wane
anddsurvmspline_wane
where offsets were not implemented correctly. This affected hazard predictions for models that included both background hazards and treatment effect waning.
- A random walk prior can now be specified for the spline coefficients, by
smooth_model = "random_walk"
.
-
Non-proportional hazards models can now be applied to a subset of the covariates, by supplying a formula as the
nonprop
argument tosurvextrap
. -
Prior simulation functions such as
prior_sample
now require an explicit covariate model, specified throughformula
andnewdata
, rather than a design matrixX
. These functions now fully support nonproportional hazards models and cure probabilities with associated regression models.
- Code for constructing
mspline
specification objects tidied, with newmspline_init
andmspline_list_init
functions.
- Deprecated Stan array syntax updated. The package now requires
rstan
version 2.26.
- Fix for
mspline_spec
bug introduced in 0.8.2.
- Individual data can now be excluded, so that the model is fitted to external data alone.
- Update to work with StanHeaders 2.26.
The GitHub commit on 6 May 2023 implemented several changes that are listed here. survextrap
is now in "beta" status. All major features are now implemented, but there may still be some lack of polish.
-
A new vignette
cetuximab
, giving an in-depth case study of a realistic use ofsurvextrap
. To be included in a forthcoming paper. -
Improvements to usability and stability of M-splines:
-
iknots
andbknots
are replaced by a singleknots
, and the lower boundary knot is always fixed at zero. -
add_knots
can be used to add user-defined knots to the default ones. See the case study. -
New function
mspline_spec
to define M-spline knots based on data, in advance of fitting any models. -
M-splines can now be smoother at the final knot, through an option
bsmooth
, which is on by default. Thanks to Iain Timmins for the suggestion.
-
-
Incremental restricted mean survival time (
irmst
) added. -
Any summary of the posterior distribution can be produced by supplying a list of summary functions (e.g.
mean
,quantiles
) to output functions (such asrmst
andsurvival
). -
Leave-one-out cross validation for external data.
-
Bug fix for
hsurvmspline()
(hencehazard()
) which was using the wrong tail end ofpsurvmspline()
. -
Waning models no longer ignore non-proportional hazards and cure. Waning vignette merged into the methods vignette.
-
Leave-one-out cross validation now supports models with background hazards.
-
More consistent naming of arguments and variables (e.g.
hscale
for hazard scale, andhsd
for hazard smoothing parameter). -
More information given when printing fitted model objects.
-
Thorough documentation polishing and code tidying.
See commit messages on GitHub for a history of developments to survextrap
.