Learn R Programming

tsapp (version 1.0.4)

lambdaCalculationLoad: lambdaCalculationLoad is an auxiliary function for rlassoLoad; it calculates the penalty parameters with predefined loadings.

Description

lambdaCalculationLoad is an auxiliary function for rlassoLoad; it calculates the penalty parameters with predefined loadings.

Usage

lambdaCalculationLoad(
  X.dependent.lambda = FALSE,
  c = 2,
  gamma = 0.1,
  load,
  bns,
  lns,
  nboot,
  y = NULL,
  x = NULL
)

Arguments

X.dependent.lambda

Logical, TRUE, if the penalization parameter depends on the design of the matrix x. FALSE, if independent of the design matrix (default).

c

Constant for the penalty with default c = 2 .

gamma

Constant for the penalty with default gamma=0.1.

load

Penalty loadings, vector of length p (no. of regressors).

bns

Block length.

lns

Number of blocks.

nboot

Number of bootstrap iterations.

y

Residual which is used for calculation of the variance or the data-dependent penalty.

x

Regressors (vector, matrix or object can be coerced to matrix).

Value

lambda0

Penalty term

Ups0

Penalty loadings, vector of length p (no. of regressors)

lambda

This is lambda0 * Ups0

penalty

Summary of the used penalty function