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.

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.