powered by
This function creates a residual plot (residplot) on a data frame of the variables in an equation.
residplot(df, formula)
data frame to read in.
the variables in the regression model, \(Y = X_1 + X_2 + ... + X_m\), written as Y ~ X1 + X2...
Y ~ X1 + X2
data <- mtcars residplot(data, mpg ~ wt + am)
Run the code above in your browser using DataLab