Description Usage Arguments Value
View source: R/lm_SD_optimizer.R
lm_SD_optimizer is used to estimates the parameters of a Linear Regression model via an unconstrained optimization method called Steepest Descent Method. It is in the general version: extract the variables of interest from the dataset and generates the initial values of the coefficients other than the betahat_SD_R functionalities
1 | lm_SD_optimizer(formula, df, tolerance, maxit, verbose)
|
formula |
[character] a symbolic description of the model to be fitted (as lm), with -1 if the intercept is not included |
df |
[numeric] dataset containing the variables of interest |
tolerance |
[numeric] tolerance level, stopping criteria of the algorithm (error<tolerance: stop) |
maxit |
[numeric] maximum number of iterations, used if the stopping criteria is never matched |
verbose |
[logical] indicating if the function write messages during the computation |
[list] betas estimated, regressors, response variable, formula of the model, and name of the method implemented
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.