# NOT RUN {
# model
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
# using fitted values of the model
ols_score_test(model)
# using predictors from the model
ols_score_test(model, rhs = TRUE)
# specify predictors from the model
ols_score_test(model, vars = c('disp', 'wt'))
# }
Run the code above in your browser using DataLab