plotCoefficient: Plot of coefficients

View source: R/LarsPath.R

plotCoefficientR Documentation

Plot of coefficients

Description

Plot of the coefficients of a step

Usage

plotCoefficient(x, step, ylab = "coefficients", xlab = "variables", ...)

Arguments

x

A LarsPath object.

step

The step at which you want to plot the coefficients.

ylab

Name of the y axis.

xlab

Name of the x axis.

...

Other plot arguments.

Value

Plot of the coefficients of a step

See Also

HDlars 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)
plotCoefficient(result, result@nbStep) # plot coefficients at the last step

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