| fast_ols | R Documentation |
OLS calculation with additional objects
fast_ols(y, x)
y |
A vector with the dependent variable. |
x |
A matrix with with regressors as columns. |
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(y,x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.