Learn R Programming

shrink (version 1.2.3)

shrink.lm: Global, Parameterwise and Joint Shrinkage of Regression Coefficients for Fit Object's of Class lm.

Description

Internal function for shrink.

Usage

shrink.lm(fit, type, method, join, notes, postfit)

Value

A list with the following elements:

ShrinkageFactorscdot[rmInt]
ShrinkageFactorsVCOVsummary.glm(sfit)$cov.scaled
ShrunkenRegCoefshcoef
postfitpfit

Arguments

fit

a fit object of class lm, glm, coxph, or mfp. The fit object must have been called with x = TRUE (and y = TRUE in case of class lm).

type

of shrinkage, either "parameterwise" (default), "global" shrinkage, or "all".

method

of shrinkage estimation, either "jackknife" (based on leave-one-out resampling, default) or "dfbeta" (excellent approximation based on DFBETA residuals).

join

compute optional joint shrinkage factors for sets of specified columns of the design matrix, if type = "parameterwise". See details.

notes

print notes. Default is TRUE.

postfit

obtain fit with shrunken regression coefficients. This option is only available for models without an intercept. Default is TRUE.