Learn R Programming

difR (version 6.1.0)

plot_lasso_paths: Plot coefficient paths from LASSO DIF

Description

This function displays coefficient trajectories from LASSO-regularized DIF detection.

Usage

plot_lasso_paths(
  out,
  nr.lambda = 100,
  highlight = NULL,
  title = "Regularization Paths of DIF Effects",
  ...
)

Value

A base R plot of coefficient paths.

Arguments

out

A fitted object returned by lassoDIF().

nr.lambda

Number of lambda values to evaluate and display (default is 100).

highlight

Optional: indices of items to highlight in color.

title

Main title of the plot.

...

Additional graphical parameters passed to matplot().