Description Usage Arguments Details Value Author(s) References See Also Examples

`ols`

can be used to calculate the values of Ordinary Least Square Estimated values and corresponding scaler Mean Square Error (MSE) value.

1 |

`formula` |
in this section interested model should be given. This should be given as a |

`data` |
an optional data frame, list or environment containing the variables in the model. If not found in |

`na.action` |
if the dataset contain |

`...` |
currently disregarded. |

Since formula has an implied intercept term, use either `y ~ x - 1`

or `y ~ 0 + x`

to remove the intercept.

If there is any dependence present among the independent variables (multicollinearity) then it will be indicated as a warning massage. In case of multicollinearity Ordinary Least Square Estimators are not the best estimators.

`ols`

returns the Ordinary Least Square Estimated values, standard error values, t statistic values,p value and corresponding scalar MSE value. In addition if the dataset contains multicollinearity then it will be indicated as a warning massage.

P.Wijekoon, A.Dissanayake

Nagler, J. (Updated 2011) Notes on Ordinary Least Square Estimators.

1 2 3 |

lrmest documentation built on May 19, 2017, 6:44 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.