Skip to content

Releases: nanxstats/hdnom

hdnom 6.0.4

05 Sep 04:49
Compare
Choose a tag to compare

Bug fixes

  • Fixed C code compatibility issues with _R_USE_STRICT_R_HEADERS_ (upcoming default in R 4.5.0) (#13):
    • Defined STRICT_R_HEADERS.
    • Replaced Calloc and Free with R_Calloc and R_Free.
    • Included float.h for FLT_EPSILON.

hdnom 6.0.3

03 Mar 02:25
Compare
Choose a tag to compare

Improvements

  • Fix "lost braces" check notes on r-devel.
  • Export S3 method per guidelines in roxygen2 7.3.0.
  • Use GitHub Actions to build the pkgdown site.
  • Fix code linting issues.

hdnom 6.0.2

24 Apr 04:33
Compare
Choose a tag to compare

Improvements

  • Use all samples instead of a much smaller set of samples in some code examples
    as a temporary fix for reverse dependency check errors which result in the
    null model. A proper fix will involve updating the logic to use ncvsurv()
    in a pathwise manner instead of with a single value of lambda.

hdnom 6.0.1

18 May 07:07
Compare
Choose a tag to compare

Improvements

  • Removed the dependency on survAUC. Ported the essential C code for computing
    time-dependent AUC and fixed the build issues in r-devel.

hdnom 6.0.0

23 Jun 03:51
Compare
Choose a tag to compare

This version is a major refactor of the package, with several technical adjustments to improve the functional interface, code structure, and execution performance. As a result, a few critical API-breaking changes have been made. Please update your previous code that calls hdnom accordingly. For the detailed changes, please check the updated items below.

Improvements

General

  • Renamed exported functions. Most of the exported function have been renamed to be more meaningful and succinct. For example, hdcox.*() are renamed as fit_*(), hdnom.nomogram() is renamed as as_nomogram(), hdnom.validate() is renamed as validate(), and so on.
  • Removed the dependency on rms, by reusing a minimal set of code from rms for nomogram construction and plotting. This results in clearer code structure, better maintainability, and faster package installation/loading speed. Also removed other non-essential package dependencies.
  • The first argument for print functions are now returned invisbily, to make it easier to use them in a pipe.

Model Fitting

  • The components in the model fitting function returns are now unified across model types. For example, the model object can all be accessed by fit$model, and the selected "optimal" hyperparameters can be accessed by fit$lambda. The model type is now stored explicitly as fit$type.

Nomograms

  • as_nomogram (previously hdnom.nomogram()) now accepts the fitted model objects directly instead of the $model component. It now will recognize the model type automatically, thus the previous arguments model.type has been deprecated. so that it is easier to chain the function calls together using magrittr.
  • In as_nomogram, the previous ddist argument is not needed anymore and has been removed. There is also no more need to set a datadist object as a into the global options variable (which was required in the rms user flow).
  • The new nomogram implementation prints and plots the nomogram for the penalized regression models directly. This supersedes the old implementation, which fits an OLS model to regress the linear predictors on the same set of predictors selected by the penalized Cox regression model, aiming to approximate the penalized model. The numerical or visual difference is minimal, though.

Visualizations

  • Add a new ggplot2 theme theme_hdnom() and applies it to most of the validation, calibration, and comparison plots for a consistent, cleaner look across plots within the package.

hdnom 5.0

14 May 02:10
Compare
Choose a tag to compare

Improvements

  • Exported the survival curve prediction functions (glmnet.survcurve(), ncvreg.survcurve(), penalized.survcurve()) and Breslow baseline hazard estimator functions (glmnet.basesurv(), ncvreg.basesurv(), penalized.basesurv()).
  • New URL for the documentation website: https://nanx.me/hdnom/.

hdnom 4.9

29 Sep 00:14
Compare
Choose a tag to compare

Improvements

  • Use system font stack instead of Google Fonts in vignettes to avoid pandoc SSL issue.

hdnom 4.8

25 Mar 01:50
Compare
Choose a tag to compare

Improvements

  • Reduced example running time to less than 10s for hdnom.calibrate().

hdnom 4.7

25 Mar 00:37
Compare
Choose a tag to compare

Improvements

  • Better code indentation style.
  • Reduced example running time for fused lasso.
  • Updated gallery images in README.md.
  • HTTPS enabled for the website.

hdnom 4.6

07 Jan 22:04
Compare
Choose a tag to compare

Bug Fixes

  • Fixed issues in parameter tuning and cross-validation procedures for
    fused lasso models (afc49c9).
    The user-visible change is that two parameters lambda1 and lambda2
    instead of a single "lambda" are now required to fit, validate, and
    calibrate fused lasso models.

Improvements

  • The argument lambda in hdnom.nomogram is no longer needed and has
    been deprecated.
  • Allow users to specify eps and max.iter for MCP and SCAD penalty
    related models. Setting the default values to be 1e-4 and 10000,
    which is consistent with ncvreg 3.8-0.