penmat {penfa} | R Documentation |
Extract estimated penalty matrix
Description
A utility that extracts the estimated penalty matrix from a
fitted object of class penfa
.
Usage
penmat(x, type = "full", which = NULL)
Arguments
x |
An object of class |
type |
Character denoting the type of penalization. Type equal to
|
which |
Character prompting the extraction of the penalty matrix
component corresponding to the specified model matrix. It is only valid
when |
Value
A penalty matrix of class penfaPenMat
. If multiple elements
are specified in the which
argument, a list of penalty matrices (one
for each element, and each of class penfaPenMat
) is returned.