Learn R Programming

SignalY (version 1.1.1)

select_by_shrinkage: Select Variables Based on Shrinkage

Description

Variable selection method using shrinkage factors (kappa). Note: This method may underselect when tau collapses to small values. Consider using select_by_credible_interval as an alternative.

Usage

select_by_shrinkage(hs_fit, threshold = 0.5, verbose = FALSE)

Value

List with selected variable names and details.

Arguments

hs_fit

Object returned by fit_horseshoe.

threshold

Kappa threshold. Variables with kappa < threshold are considered relevant. Default 0.5.

verbose

Logical for messages.

See Also

select_by_credible_interval for a more robust alternative.