powered by
Compute the penalty function for nonconvex penalties.
penalty_function( theta = seq(-5, 5, length.out = 1e+05), penalty = "atan", lambda = 1, gamma = c(0.01, 0.05) )
Numeric vector. Values for which the derivative is computed.
Character string. Which penalty should be used (defaults to "atan")? See ggmncv for the available penalties.
"atan"
ggmncv
Numeric. Regularization parameter (defaults to 1).
1
Numeric vector. Hyperparameter(s) for the penalty function
A list of class penalty_function, including the following:
penalty_function
deriv: Data frame including the penalty function, theta, gamma, and the chosen penalty.
deriv
# NOT RUN { func <- penalty_function(theta = seq(-5,5,length.out = 10000), lambda = 1, gamma = c(0.01, 0.05, 0.1)) head(func$pen) # }
Run the code above in your browser using DataLab