get_shk: Get shrinkage estimates from model summary

View source: R/utils.R

get_shkR Documentation

Get shrinkage estimates from model summary

Description

This function parses shrinkages as they are currently presented in get_summary, so it is dependent on the current implementation of that function.

Usage

get_shk(xpdb, wh = "eta", .problem = NULL, .subprob = NULL, .method = NULL)

Arguments

xpdb

An xpose_data object.

wh

The shrinkage to extract ("eta" or "eps")

.problem

Problem number to use. Uses the xpose default if not provided.

.subprob

<numeric> Subproblem number to use. Uses the xpose default if not provided.

.method

<character> Method to use. Uses the xpose default if not provided.

Value

A numeric vector of shrinkage estimates.

Examples

data("xpdb_ex_pk", package = "xpose")

# eta Shrinkage
get_shk(xpdb_ex_pk)

# epsilon Shrinkage
get_shk(xpdb_ex_pk, wh = "eps")



xpose.xtras documentation built on April 4, 2025, 2:13 a.m.