Description Usage Arguments Value Examples
The function conduct the very common OLS estimation, which minimizes the sum of squared residuals. The function is implemented such that it works with piping, which creates more readable code.
1 |
data |
must be a dataframe containing the variables used in the estimation |
formula |
must be a modelformula, which specifies the explained and explanatory variables |
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 2 | tidymod_lm(mtcars, mpg~cyl)
mtcars %>% tidymod_lm(mpg~cyl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.