Skip to content

lboxcox

2.0.1Package record

Implementation of Logistic Box-Cox Regression

0packages depend
2.7Kdownloads / year
76.9%test coverage
12/13flavors OK

Overview

About
Maintained by Li XingCRAN page ↗

Implements a logistic Box-Cox model that adds a shape parameter to a routine logistic regression model to flexibly estimate the shape and strength of the relationship between a binary outcome and a continuous predictor, adjusting for covariates and survey weights. This model is fully described in Xing, L. et al. (2021) doi:10.1002/cjs.11587. This version extends the original 'lboxcox' package (1.1) with numerically stabilized likelihood/gradient calculations, vectorized data preprocessing, and a bootstrap-ensemble estimator.

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORtestsr-oldrel-macos-arm64
Running ‘testthat.R’ [5s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lboxcox)
  Loading required package: survey
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  > 
  > test_check("lboxcox")
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: glm.fit(x = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
...[truncated]...
orter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  73: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  74: test_check("lboxcox")
  An irrecoverable exception occurred. R is aborting now ...
  Saving _problems/test-lboxcox-50.R
  [ FAIL 1 | WARN 47 | SKIP 0 | PASS 55 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lboxcox.R:44:3'): svyglm_train init is the same with and without parallel ──
  Error in `if (lambda == 0) log(myXX) else expm1(lambda * log(myXX))/lambda`: argument is of length zero
  Backtrace:
      ▆
   1. └─lboxcox:::svyglm_train(...) at test-lboxcox.R:44:3
   2.   └─lboxcox:::train_single_svyglm_model(formula, design, best_lambda)
  
  [ FAIL 1 | WARN 47 | SKIP 0 | PASS 55 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 3.7 min · r-release-macos-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-10-05
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-30
  • ERROR13 OK, 1 ERROR2026-03-10
Advisories

none known

Documentation

In release 2.0.1
READMEYes · 1,356 wordsVignettesYes · 1 · dynamicNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
12 (1 internal)includes a package overview page
Examples that run
no examples
Exported functions with examples
0%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
8%

Downloads

2.7K
CRAN downloads in the past year
Rank #15,625 · ~7/day · ~227/mo
Daily download trend is not available in this view yet.
36230 days
78790 days
2.7K1 year
Compare downloads with other packages →
Also on72 r2u4 autocran

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing lboxcox adds 73 packages (38 with compiled code, 56 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (2)
R >= 3.5.0survey
Imports (6)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (7)
Maintainer since 1.0 (2022), Author
Author · added in 1.2
Author · added in 1.2
Releases (4)

Pick two releases to compare their code metrics.

  • 2.0.1Latest
    record
    2026-10-04 · current release · diff ↗ ·
    removed 7 exports
    LogLikeFun, LogLikeFun_new, ScoreFun, ScoreFun_new, box_cox_new, lbc_train, svyglm_ms
    added 7 exports
    devr, lbc_train_all, lbc_train_bagging, lbc_train_ms, lboxcox_cv.fit, lboxcox_cv.predict, lboxcox_maxLik_el.predict
    ·
    23 hours in CRAN's queue
    Listed in CRAN's incoming queue from 2026-10-03 21:57 to 2026-10-04 20:43 UTC, in 6 readings.
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2
    record
    2023-12-16 · diff ↗ ·
    added 6 exports
    LogLikeFun_new, ScoreFun_new, box_cox_new, lbc_maxlik, lboxcox_maxLik.predict, svyglm_ms
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1
    record
    2022-08-30 · diff ↗ ·
    added 1 export
    median_effect
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0
    record
    2022-01-27
  • R
    R 4.1.0 released · 2021-05-18
Across CRAN, the median accepted release of the past year spent 23 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2022-01-27
Total releases
4 / 4 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
86 KB / 1 file
Download size
126 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("lboxcox")
Xing, L., Booth, K., Burstyn, I., Gustafson, P., Wang, J., Xu, S., & Zhang, X. (2026). lboxcox: Implementation of Logistic Box-Cox Regression (Version 2.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.lboxcox

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 lboxcox version 2.0.1 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, 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