gradient_fun_penalty | R Documentation |
Calculate the Gradient for Penalized Regression
gradient_fun_penalty(y, tXy, tXX, beta, Q)
y |
A vector of observations |
tXy |
A vector of the transpose of design matrix X times the output data y |
tXX |
A matrix of the transpose of design matrix X times the design matrix X |
beta |
A vector of regression parameters |
Q |
A penalty (precision) matrix |
The gradient vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.