Description Usage Arguments Details Value
gradient()
.
1 | gradient(X, y, theta, lambda)
|
X |
Design matrix X. |
y |
Vector of observations. |
theta |
Vector of starting values for coefficients of length |
lambda |
Regularisation parameter. |
Internal function supplied to optim
which calculates gradient.
Returns the gradient of the current parameters theta.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.