powered by
This function parses shrinkages as they are currently presented in get_summary, so it is dependent on the current implementation of that function.
get_summary
get_shk(xpdb, wh = "eta", .problem = NULL, .subprob = NULL, .method = NULL)
A numeric vector of shrinkage estimates.
An xpose_data object.
xpose_data
The shrinkage to extract ("eta" or "eps")
"eta"
"eps"
Problem number to use. Uses the xpose default if not provided.
<numeric> Subproblem number to use. Uses the xpose default if not provided.
numeric
<character> Method to use. Uses the xpose default if not provided.
character
data("xpdb_ex_pk", package = "xpose") # eta Shrinkage get_shk(xpdb_ex_pk) # epsilon Shrinkage get_shk(xpdb_ex_pk, wh = "eps")
Run the code above in your browser using DataLab