View source: R/fast_ols_const.R
| fast_ols_const | R Documentation |
OLS calculation with additional objects for model with just a constant.
fast_ols_const(y)
y |
A vector with the dependent variable. |
A list with OLS objects: Coefficients, Standard errors, Marginal likelihood, R^2, Degrees of freedom, Determinant of the regressors matrix.
x1<-rnorm(10, mean = 0, sd = 1)
x2<-rnorm(10, mean = 0, sd = 2)
e<-rnorm(10, mean = 0, sd = 0.5)
y<-2+x1+2*x2+e
x<-cbind(x1,x2)
fast_ols_const(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.