Description Usage Arguments Value Examples
View source: R/linear_gd_optim.R
This function computes the vector of parameters in a linear regression model via the Gradient Descend Method.
1 | linear_gd_optim(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 |
stepsize |
The value for the stepsize in the equation of the gradient descend |
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.