Learn R Programming

olsrr (version 0.1.0)

ols_regress: Ordinary Least Squares Regression

Description

Ordinary Least Squares Regression

Usage

ols_regress(object, ...)

# S3 method for lm ols_regress(object, ...)

Arguments

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

Value

ols_regress returns an object of class "ols_regress". An object of class "ols_regress" is a list containing the following components:

r

f statistic

rsq

pure error

adjr

regression sum of squares

sigma

error sum of squares

cv

total sum of squares

mse

mean squared error

mae

p-value of fstat

aic

degrees of freedom

sbc

name(s) of variable

sbic

name of group_var

prsq

f statistic

error_df

p-value of fstat

model_df

degrees of freedom

total_df

name(s) of variable

ess

name of group_var

rss

f statistic

tss

p-value of fstat

rms

degrees of freedom

ems

name(s) of variable

f

name of group_var

p

name of group_var

n

p-value of fstat

betas

degrees of freedom

sbetas

name(s) of variable

std_errors

name of group_var

tvalues

f statistic

pvalues

p-value of fstat

df

degrees of freedom

conf_lm

name(s) of variable

title

name of group_var

dependent

f statistic

predictors

p-value of fstat

mvars

degrees of freedom

model

name(s) of variable

Examples

Run this code
ols_regress(mpg ~ disp + hp + wt, data = mtcars)

Run the code above in your browser using DataLab