Package: savvyPR 0.1.0

Ziwei Chen

savvyPR: Savvy Parity Regression Model Estimation with 'savvyPR'

Implements the Savvy Parity Regression 'savvyPR' methodology for multivariate linear regression analysis. The package solves an optimization problem that balances the contribution of each predictor variable to ensure estimation stability in the presence of multicollinearity. It supports two distinct parameterization methods, a Budget-based approach that allocates a fixed loss contribution to each predictor, and a Target-based approach (t-tuning) that utilizes a relative elasticity weight for the response variable. The package provides comprehensive tools for model estimation, risk distribution analysis, and parameter tuning via cross-validation (PR1, PR2, and PR3 model types) to optimize predictive accuracy. Methods are based on Asimit, Chen, Ichim and Millossovich (2026) <https://openaccess.city.ac.uk/id/eprint/35005/>.

Authors:Ziwei Chen [aut, cre], Vali Asimit [aut], Pietro Millossovich [aut]

savvyPR_0.1.0.tar.gz
savvyPR_0.1.0.zip(r-4.7)savvyPR_0.1.0.zip(r-4.6)savvyPR_0.1.0.zip(r-4.5)
savvyPR_0.1.0.tgz(r-4.6-any)savvyPR_0.1.0.tgz(r-4.5-any)
savvyPR_0.1.0.tar.gz(r-4.7-any)savvyPR_0.1.0.tar.gz(r-4.6-any)
savvyPR_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
savvyPR/json (API)

# Install 'savvyPR' in R:
install.packages('savvyPR', repos = c('https://ziwei-chenchen.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ziwei-chenchen/savvypr/issues

Pkgdown/docs site:https://ziwei-chenchen.github.io

On CRAN:

Conda:

4.00 score 534 downloads 2 exports 29 dependencies

Last updated from:c19047c433. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK225
source / vignettesOK240
linux-release-x86_64OK218
macos-release-arm64OK119
macos-oldrel-arm64OK121
windows-develOK195
windows-releaseOK200
windows-oldrelOK184
wasm-releaseOK99

Exports:cv.savvyPRsavvyPR

Dependencies:clicodetoolscpp11farverforeachggplot2glmnetgluegridExtragtableisobanditeratorslabelinglatticelifecycleMatrixnleqslvR6RColorBrewerRcppRcppEigenrlangS7scalesshapesurvivalvctrsviridisLitewithr

Savvy Parity Regression Model Estimation with 'savvyPR'

Rendered fromsavvyPR_example.Rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2026-03-18
Started: 2026-03-05