tidymod_lm: OLS estimation - formula

Description Usage Arguments Value Examples

Description

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.

Usage

1

Arguments

data

must be a dataframe containing the variables used in the estimation

formula

must be a modelformula, which specifies the explained and explanatory variables

Value

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

Examples

1
2
tidymod_lm(mtcars, mpg~cyl)
mtcars %>% tidymod_lm(mpg~cyl)

elben10/tidymodelR documentation built on May 14, 2019, 8:34 a.m.