coeff: get coefficients at a given step.

View source: R/LarsPath.R

coeffR Documentation

get coefficients at a given step.

Description

Get the vector of coefficients at a given step

Usage

coeff(x, step)

Arguments

x

A LarsPath object.

step

The step at which you want to get the coefficients.

Value

a vector of size p containing the value of coefficients at the desired step.

See Also

HDlars HDfusion LarsPath

Examples

dataset <- simul(50, 1000, 0.4, 10, 50, matrix(c(0.1, 0.8, 0.02, 0.02), nrow = 2))
result <- HDfusion(dataset$data, dataset$response)
coefficient <- coeff(result, result@nbStep) # get the coefficients

HDPenReg documentation built on March 31, 2023, 9:31 p.m.