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:
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
Last updated from:c19047c433. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 225 | ||
| source / vignettes | OK | 240 | ||
| linux-release-x86_64 | OK | 218 | ||
| macos-release-arm64 | OK | 119 | ||
| macos-oldrel-arm64 | OK | 121 | ||
| windows-devel | OK | 195 | ||
| windows-release | OK | 200 | ||
| windows-oldrel | OK | 184 | ||
| wasm-release | OK | 99 |
Exports:cv.savvyPRsavvyPR
Dependencies:clicodetoolscpp11farverforeachggplot2glmnetgluegridExtragtableisobanditeratorslabelinglatticelifecycleMatrixnleqslvR6RColorBrewerRcppRcppEigenrlangS7scalesshapesurvivalvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Extract Coefficients From a Cross-Validated Parity Regression Model Object | coef.cv.savvyPR |
| Extract Coefficients From a Parity Regression Model Object | coef.savvyPR |
| Cross-Validation for Parity Regression Model Estimation | cv.savvyPR |
| Plot for a Cross-Validated Parity Regression Model | plot.cv.savvyPR |
| Plot for a Parity Regression Model | plot.savvyPR |
| Predict for Cross-Validated Parity Regression Models | predict.cv.savvyPR |
| Predict for Parity Regression Models | predict.savvyPR |
| Print a Cross-Validated Parity Regression Model Object | print.cv.savvyPR |
| Print a Parity Regression Model Object | print.savvyPR |
| Parity Regression Model Estimation | savvyPR |
| Summary of Cross-Validated Parity Regression Model | summary.cv.savvyPR |
| Summary of Parity Regression Model | summary.savvyPR |