penaltymatrix {penMSM} | R Documentation |
Penalty matrix for L1 penalized estimation of multistate models.
Description
This builds up a penalty matrix needed for the penalized estimation of multistate models.
Usage
penaltymatrix(lambda, PSM, beta, w, constant)
Arguments
lambda |
vector with penalty parameters for the respective penalty components. |
PSM |
penalty structure matrix containing the penalty structure vectors |
beta |
vector of regression coefficients. |
w |
vector containing weights for the respective penalty components. |
constant |
constat that is needed for the locally (in the neighborhood of 0) quadratical approximation of the absolute value function. |
Details
This function calculates the penalty matrix needed for the penalized estimation of multistate models.
Value
A penalty matrix plambda
.
Author(s)
Holger Reulen
Examples
## Not run: penaltymatrix(lambda, PSM, beta, w, constant)
[Package penMSM version 0.99 Index]