Skip to content

shrink

1.2.3

Global, Parameterwise and Joint Shrinkage Factor Estimation

0packages depend
2.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Daniela DunklerFirst published 2013-04-028 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
4
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
31%

Downloads

2.9K
CRAN downloads in the past year
Rank #16,404 · ~8/day · ~241/mo
Daily download trend is not available in this view yet.
20430 days
69990 days
2.9K1 year
Compare downloads with other packages →
Also on85 r2u15 autocran

Repository

Repository
2Stars
1Forks
3Open issues
0Open PRs
1Releases
14Commits
2Contributors
14 commits · Last activity 2023-10-31

Stars over time

2024-05-27 · 22026-07-07 · 2

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/biometrician/shrink on 2026-07-19.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2.2
Imports (4)
survivalMASSrmsmfp
LinkingTo (0)
none
Suggests (3)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,361 (53%)Rd 789 (31%)Vignettes 413 (16%)
Code characteristics
Object systems
S35
Cyclomatic complexity
17.0 median / 39 max

Test coverage

Line coverage

Expression

Tests / Examples

Functions

10 5 exported

Complexity

17.2 avg / 39 max

Call network

10 nodes / 6 edges

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Datasets

Bundled datasets · 2
NameClassRows × ColsAlso ships in
GBSGdata.frame686 × 11
deepveindata.frame929 × 11

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

8 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 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.3Latest
    2023-10-31 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.2
    2022-02-08 · diff ↗
  • unarchivedReturned to CRAN
    2022-02-08
  • archivedRemoved from CRAN
    2022-01-08
    requires orphaned package 'mfp'
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.2.1
    2016-03-09 · diff ↗
Show 9 earlier events
  • R
    R 3.2.0 released · 2015-04-16
  • 1.2.0
    2014-10-02 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3
    2013-10-21 · diff ↗
  • 1.1
    2013-10-21 · diff ↗
  • 3.0.0
    2013-04-03 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.0
    2013-04-02
  • R
    R 2.15.0 released · 2012-03-30

Package metadata

First published
2013-04-02
Total releases
8 / 13 yrs
License
GPL-3 OSI
Minimum R
≥ 3.2.2
Bundled data
19 KB / 2 files
Download size
84 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →