getPath: Get the regularization path

Description Usage Arguments

Description

Extract the regularization path from a lvm object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
getPath(x, ...)

## S3 method for class 'plvmfit'
getPath(x, coef, ...)

## S3 method for class 'regPath'
getPath(x, coef, V, lambda = "lambda1.abs",
  keep.indexChange = FALSE, keep.index = TRUE, keep.optimum = TRUE,
  path.constrain = FALSE, only.breakpoints = FALSE, increasing = TRUE,
  row = NULL, ...)

Arguments

x

a plvmfit object or a regPath object

...

additional arguments to be passed to low levels functions

coef

names of the coefficients to extract. Can also be "coef0" or "coefn0" to extract the number of 0 or non-0 coefficients

V

matrix containig the constrains

lambda

names of the penalization parameter to extract.

keep.index

should the index of the knot be kept in the output.

keep.optimum

should the column indicating the optimum and the fit be kept in the output.

path.constrain

should the column containing the active constrains be added to the output.

only.breakpoints

should the path be extracted only at the breakpoints

increasing

should the path be extracted by increasing value of regularization parameter

row

the index at which the path should be extracted


bozenne/lava.penalty documentation built on May 13, 2019, 1:41 a.m.