| .solver_stabilize_working_weights | R Documentation |
Keeps iteratively reweighted least-squares weights finite and bounded away from zero so the weighted Gram and Woodbury updates stay numerically well posed.
.solver_stabilize_working_weights(
W,
min_weight = sqrt(.Machine$double.eps),
max_weight = 10000
)
W |
Numeric working-weight vector. |
min_weight |
Lower bound applied after replacing non-finite values. |
max_weight |
Upper bound for extremely large finite weights. |
Numeric vector of stabilized working weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.