Skip to content

Instantly share code, notes, and snippets.

@toyeiei
Created November 5, 2022 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toyeiei/3556df5784ba3552ac40045a3994229a to your computer and use it in GitHub Desktop.
Save toyeiei/3556df5784ba3552ac40045a3994229a to your computer and use it in GitHub Desktop.
Regression modeling in R
library(caret)
model <- train(mpg ~ ., data = mtcars, method = "lm")
print(model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment