Package: RGS 1.0

RGS: Recursive Gradient Scanning Algorithm

Provides a recursive gradient scanning algorithm for discretizing continuous variables in Logistic and Cox regression models. This algorithm is especially effective in identifying optimal cut-points for variables with U-shaped relationships to 'lnOR' (the natural logarithm of the odds ratio) or 'lnHR' (the natural logarithm of the hazard ratio), thereby enhancing model fit, interpretability, and predictive power. By iteratively scanning and calculating gradient changes, the method accurately pinpoints critical cut-points within nonlinear relationships, transforming continuous variables into categorical ones. This approach improves risk classification and regression analysis performance, increasing interpretability and practical relevance in clinical and risk management settings.

Authors:Shuo Yang [aut, cre], Yi Fei [aut], Jinxin Zhang [ths]

RGS_1.0.tar.gz
RGS_1.0.zip(r-4.5)RGS_1.0.zip(r-4.4)
RGS_1.0.tgz(r-4.5-any)RGS_1.0.tgz(r-4.4-any)
RGS_1.0.tar.gz(r-4.5-noble)RGS_1.0.tar.gz(r-4.4-noble)
RGS_1.0.tgz(r-4.4-emscripten)
RGS.pdf |RGS.html
RGS/json (API)

# Install 'RGS' in R:
install.packages('RGS', repos = c('https://shuo-yang-sysu.r-universe.dev', 'https://cloud.r-project.org'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.00 score 128 downloads 4 exports 78 dependencies

Last updated 3 months agofrom:0648ccf3f8. Checks:7 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 20 2025
R-4.5-winOKMar 20 2025
R-4.5-macOKMar 20 2025
R-4.5-linuxOKMar 20 2025
R-4.4-winOKMar 20 2025
R-4.4-macOKMar 20 2025
R-4.4-linuxOKMar 20 2025

Exports:rgs_for_coxrgs_for_logistictest_ushape_coxtest_ushape_logistic

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercodetoolscolorspacedata.tabledigestevaluatefansifarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmemoisemgcvmimemultcompmunsellmvtnormnlmennetpillarpkgconfigpolsplinequantregR6rappdirsRColorBrewerrlangrmarkdownrmsrpartrstudioapisandwichsassscalesSemiParSparseMstringistringrsurvivalTH.datatibbletinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo