Description Usage Arguments Value Examples
View source: R/linear_gd_optim2.R
This function is the slower version of linear_gd_optim
given that it makes use of the grad
function contained in the package "numDeriv".
1 | linear_gd_optim2(b_pre, X, y, tol = 0.001, maxit = 1000, stepsize = 0.001)
|
b_pre |
vector of initial parameters |
X |
Covariates Matrix: each column contains observations for each covariate. |
y |
Response variable observations |
tol |
Tolerance level for the optimization process, the default is 0.001. |
maxit |
Maximum iterations number. Default is 1000. |
stepsize |
The value for the stepsize in the equation of the gradient descend. Default is 0.001. |
A list containing the fitted values for the beta vector and the number of iterations performed.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.