Learn R Programming

olsrr (version 0.1.0)

ols_reg_line: Simple Linear Regression Line

Description

Regression line always passes through xbar and ybar

Usage

ols_reg_line(response, predictor)

Arguments

response

response variable

predictor

explanatory variable

Examples

Run this code
ols_reg_line(mtcars$mpg, mtcars$disp)

Run the code above in your browser using DataLab