Description Usage Arguments Value Examples
View source: R/main_functions.R
Returns possible weight functions that can be used in d2wlasso.
1 2 3 | get.weight.fn(
weight_fn_type = c("identity", "sqrt", "inverse_abs", "square")[1]
)
|
weight_fn_type |
character indicating type of function to return. |
a function that can be applied to a scalar.
1 | weight_fn <- get.weight.fn("sqrt") # return f(x)=sqrt(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.