weight_coef: Return the restricted coefficients generated by restriction function(s)
Description
A helper function for working with output of
midas_r
. Returns the restricted coefficients
generated by restriction function(s)Usage
weight_coef(x, name = weight_names(x))
Arguments
name
name(s) of the restriction function(s), the
default value is the name(s) of the restriction
function(s) supplied to midas_r
Value
- a list if
length(name)>1
, a vector otherwise