penaltymatrix: Penalty matrix for L1 penalized estimation of multistate...

Description Usage Arguments Details Value Author(s) Examples

Description

This builds up a penalty matrix needed for the penalized estimation of multistate models.

Usage

1
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 psv as rows.

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

1
## Not run: penaltymatrix(lambda, PSM, beta, w, constant)

penMSM documentation built on May 2, 2019, 11:06 a.m.

Related to penaltymatrix in penMSM...