Learn R Programming

olsrr (version 0.4.0)

ols_ovsp_plot: Actual vs Fitted Values Plot

Description

Plot of actual vs fitted values to assess the fit of the model.

Usage

ols_ovsp_plot(model)

Arguments

model

an object of class lm

Details

Ideally, all your points should be close to a regressed diagonal line. Draw such a diagonal line within your graph and check out where the points lie. If your model had a high R Square, all the points would be close to this diagonal line. The lower the R Square, the weaker the Goodness of fit of your model, the more foggy or dispersed your points are from this diagonal line.

Examples

Run this code
# NOT RUN {
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_ovsp_plot(model)
# }

Run the code above in your browser using DataLab