Ordinary Least Squares Regression
ols_regress(object, ...)# S3 method for lm
ols_regress(object, ...)
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted.
other inputs
ols_regress
returns an object of class "ols_regress"
. An object
of class "ols_regress"
is a list containing the following
components:
f statistic
pure error
regression sum of squares
error sum of squares
total sum of squares
mean squared error
p-value of fstat
degrees of freedom
name(s) of variable
name of group_var
f statistic
p-value of fstat
degrees of freedom
name(s) of variable
name of group_var
f statistic
p-value of fstat
degrees of freedom
name(s) of variable
name of group_var
name of group_var
p-value of fstat
degrees of freedom
name(s) of variable
name of group_var
f statistic
p-value of fstat
degrees of freedom
name(s) of variable
name of group_var
f statistic
p-value of fstat
degrees of freedom
name(s) of variable
ols_regress(mpg ~ disp + hp + wt, data = mtcars)
Run the code above in your browser using DataLab