Package: shrink 1.2.3

shrink: Global, Parameterwise and Joint Shrinkage Factor Estimation

The predictive value of a statistical model can often be improved by applying shrinkage methods. This can be achieved, e.g., by regularized regression or empirical Bayes approaches. Various types of shrinkage factors can also be estimated after a maximum likelihood. While global shrinkage modifies all regression coefficients by the same factor, parameterwise shrinkage factors differ between regression coefficients. With variables which are either highly correlated or associated with regard to contents, such as several columns of a design matrix describing a nonlinear effect, parameterwise shrinkage factors are not interpretable and a compromise between global and parameterwise shrinkage, termed 'joint shrinkage', is a useful extension. A computational shortcut to resampling-based shrinkage factor estimation based on DFBETA residuals can be applied. Global, parameterwise and joint shrinkage for models fitted by lm(), glm(), coxph(), or mfp() is available.

Authors:Daniela Dunkler [aut, cre], Georg Heinze [aut]

shrink_1.2.3.tar.gz
shrink_1.2.3.zip(r-4.6)shrink_1.2.3.zip(r-4.5)
shrink_1.2.3.tgz(r-4.6-any)shrink_1.2.3.tgz(r-4.5-any)
shrink_1.2.3.tar.gz(r-4.6-any)shrink_1.2.3.tar.gz(r-4.5-any)
shrink_1.2.3.tgz(r-4.5-emscripten)
shrink.pdf |shrink.html
shrink/json (API)
NEWS

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

Bug tracker:https://github.com/biometrician/shrink/issues

Datasets:
  • GBSG - German Breast Cancer Study Group
  • deepvein - Deep Vein Thrombosis Study

On CRAN:

Conda:

4.28 score 2 stars 19 scripts 219 downloads 5 exports 73 dependencies

Last updated from:1ae1c1a9cf. Checks:8 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK175
source / vignettesOK206
linux-release-x86_64OK189
macos-devel-arm64OK153
macos-release-arm64OK190
windows-develOK130
windows-releaseOK120
wasm-releaseOK134

Exports:isrcsshrinkshrink.coxphshrink.glmshrink.lm

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercodetoolscolorspacecpp11data.tabledigestevaluatefarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmemoisemfpmimemultcompmvtnormnlmennetnumDerivpolsplinequantregR6rappdirsRColorBrewerrlangrmarkdownrmsrpartrstudioapiS7sandwichsassscalesSparseMstringistringrsurvivalTH.datatinytexvctrsviridisLitewithrxfunyamlzoo

JSS Example Code

Rendered fromJSSexample.Rmdusingknitr::rmarkdownon Mar 27 2026.

Last update: 2020-06-17
Started: 2020-06-17