Description Usage Arguments Value Examples
The function conduct the very common OLS estimation, which minimizes the sum of squared residuals.
1 | tidymod_lm_matrix(X, Y, ...)
|
X |
is the covariate matrix, which contains all explanatory variables. Has to be a matrix or be convertible with as.matrix() |
Y |
is the explained variable. Has to be numeric or be convertible with as.numeric() |
A list is returned containing the following elements coefficients, standard errors, degrees of freedom, variance-covariance matrix, fitted values, residuals, data used in the regression, the call, the intercept and the formula
1 | tidymod_lm_matrix(mtcars[,2:3], mtcars[,1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.