0

Let's imagine that for a target value 'price', I have predictive variables of x, y, z, m, and n. I have been able to analyse different models that I could fit through following methods:

  1. Forward, backward, and stepwise selection
  2. Grid and Lasso
  3. KNN (IBk)

For each I got RMSE and MSE for prediction and I can choose the best model. All these are helpful with linear models. I'm just wondering if there is any chance to do the same for polynomial regressions (squared, cubic, ...) so I can fit and analyse them as well in the same dataset.

Behrouz Beheshti
  • 1,053
  • 1
  • 10
  • 14

1 Answers1

0

Have you seen caret package? Its very powerfull and groups a lot of machine learning models. It can compares different models and also see the best metaparameters.

http://topepo.github.io/caret/index.html

Daniel Gimenez
  • 551
  • 3
  • 6