Skip to content

tramnet

0.1-0Package record

Penalized Transformation Models

0packages dependsuggested by 1
50.5Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Partially penalized versions of specific transformation models implemented in package 'mlt'. Available models include a fully parametric version of the Cox model, other parametric survival models (Weibull, etc.), normal and transformed-normal (Box-Cox type) linear models, and continuous outcome logistic regression. Models can be specified via a formula interface. Hyperparameter tuning is facilitated through model-based optimization functionalities from package 'mlr3mbo'. The accompanying vignette describes the methodology used in 'tramnet' in detail. Transformation models and model-based optimization are described in Hothorn et al. (2019) doi:10.1111/sjos.12291 and Bischl et al. (2017) doi:10.48550/arXiv.1703.03373, respectively.

Changes in 0.1-0

New features

  • tramnet() is now an S3 generic. The existing interface, taking an unpenalized tram model and a design matrix, is available as tramnet.default() and remains unchanged.
  • New formula interface tramnet.formula(), the penalized analogue of tram::tram(), together with the convenience wrappers Coxphnet(), Colrnet(), Lmnet(), BoxCoxnet(), Lehmannnet() and Survregnet(). The design matrix is set up and scaled internally, and the scaling of the training data is re-used for newdata in all methods and in cvl_tramnet().
  • coef() gains argument scaled. For models fitted via the formula interface, coefficients are reported on the original scale of the covariates by default.
Show all changes in 0.1-0Hide the rest of the changes in 0.1-0
  • New model.matrix() method.
  • mbo_recommended() additionally accepts a fitted "tramnet" object.
  • Case weights and offsets are now taken into account when fitting.

Changes

  • Model-based optimization now uses package 'mlr3mbo' instead of the retired package 'mlrMBO'. Function names and arguments of mbo_tramnet(), elnet_obj(), lasso_obj(), ridge_obj() and mbo_recommended() are unchanged, but the default of opt_crit is now "ei", mbo_tramnet() returns a list and the objective functions are of class bbotk::ObjectiveRFun.
  • Tests use 'testthat'.
  • Removed unused dependencies ('mlbench', 'utils') and the unused internal function .plot_cvl(). The package description no longer mentions models for binary and ordered categorical responses, which cannot be fitted.

Bug fixes

  • logLik(object, newdata) now returns the out-of-sample log-likelihood without subtracting the penalty of the training fit. Consequently, cvl_tramnet() and mbo_tramnet() tune lambda and alpha based on the unpenalized out-of-sample log-likelihood (log score), which previously favoured small values of lambda.
  • The quadratic part of the penalty was erroneously scaled by lambda^2 instead of lambda in the objective function. The penalty is now lambda * (0.5 * (1 - alpha) * ||beta||_2^2 + alpha * ||beta||_1), as documented and as in 'glmnet', and coincides with the penalty subtracted in logLik(). Fits with alpha < 1 and lambda different from 0 and 1 change.
  • predict(), simulate(), plot(), residuals() and estfun() now use the correct sign of the shift term for models with negative = TRUE, such as Lm(), BoxCox(), Lehmann() and Survreg().
  • plot_path() no longer warns when restoring graphical parameters.
  • predict(), simulate() and plot() work with non-syntactic column names of the design matrix (e.g., interactions or log(x)).
  • prof_lambda(), prof_alpha() and cvl_tramnet(..., fit_opt = TRUE) refit models directly instead of re-evaluating the original call, which failed when the baseline model or the design matrix were not visible from the global environment.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.6 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-18
  • ERROR12 OK, 2 ERROR2026-03-10
Advisories

none known

Documentation

In release 0.1-0
READMENoVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.1-0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
23
Examples that run
0%8 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
64%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%
Vignettes (1)

Downloads

50.5K
CRAN downloads in the past year
Rank #4,086 · ~138/day · ~4.2K/mo
Daily download trend is not available in this view yet.
93430 days
2.2K90 days
50.5K1 year
Compare downloads with other packages →
Also on128 r2u6 autocran

Repository

PracticesBeta

Repository codeberg.org/lucaskook/tramnet is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
24 external dependencies (excludes base and recommended)

Installing tramnet adds 68 packages (39 with compiled code, 58 MB of source tarballs). Heaviest: TH.data 8.2 MB, clarabel 5.7 MB, data.table 5.7 MB.

Depends (3)
R >= 4.2.0tramCVXR
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (5)
Maintainer since 0.0-2 (2020), Author
Contributor
Contributor
Contributor
Contributor
Releases (12)

Pick two releases to compare their code metrics.

Show 4 earlier eventsHide 4 earlier events
  • 0.0-3
    record
    2020-05-14 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.0-2
    record
    2020-03-20
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2020-03-20
Total releases
12 / 6 yrs
License
GPL-2 OSI
Minimum R
≥ 4.2.0
Download size
1.5 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tramnet")
Kook, L., Hothorn, T., Pawel, S., Siegfried, S., & Tamasi, B. (2026). tramnet: Penalized Transformation Models (Version 0.1-0) [Computer software]. https://doi.org/10.32614/CRAN.package.tramnet

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tramnet version 0.1-0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy