shrink.glm: Global, Parameterwise and Joint Shrinkage of Regression...

View source: R/shrink.glm.R

shrink.glmR Documentation

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

Description

Internal function for shrink.

Usage

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

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.

Value

A list with the following elements:

ShrinkageFactors cdot[rmInt]
ShrinkageFactorsVCOV summary.glm(sfit)$cov.scaled
ShrunkenRegCoef shcoef
postfit pfit

shrink documentation built on Nov. 2, 2023, 6:05 p.m.