Description Usage Arguments Details Value Note Author(s) References See Also Examples
This function demonstrates the use of maximum likelihood to fit ordinary least-squares regression models, by maximizing the likelihood as a function of the parameters. Only conditional normal errors are supported.
1 |
formula |
an object of class '"formula"' (or one that can be coerced to that class): a symbolic description of the model to be fitted. (See the help for 'lm' for more details). |
data |
a data frame containing the variables in the model. |
This function has limited functionality compared with R's internal lm function, which should be preferred in general.
fit |
the output of optim. |
X |
the design matrix. |
y |
the response variable. |
call |
the call used for the function. |
beta.hat |
the parameter estimates. |
se.beta.hat |
estimated standard errors of the parameter estimates. |
sigma.hat |
the estimated conditional standard deviation of the response variable. |
We use least squares to get initial estimates, which is a pretty barbaric hack. But the purpose of this function is as a starting point, not to replace existing functions.
Andrew Robinson and Joe Hilbe.
Hilbe, J.M., and Robinson, A.P. 2013. Methods of Statistical Model Estimation. Chapman \& Hall / CRC.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.