Description Usage Arguments Value Author(s)
Estimates parameters of a linear regression model using optimization.
1 | linreg_optim(X, y, FUN, start_values, optim = TRUE, ...)
|
X |
The data matrix, that is an n \times k matrix of n observations of k regressors, which includes a regressor whose value is 1 for each observation. |
y |
n \times 1 vector of observations on the regressand variable. |
FUN |
Objective function.
The options are |
start_values |
A vector of starting values corresponding to the number of parameters to be estimated. |
optim |
Logical.
If |
... |
Arguments to be passed to the optimization function specified.
This is only used when |
Returns the output of optim
or nlminb
.
Ivan Jacob Agaloos Pesigan
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.