I have run an lm in R and derived model output which contains a few significant variables and a few that are not significant. I'm wondering if it is standard to now go on and simplify this model, or does the full model containing all of the estimates for each parameter, have more integrity? Thank you!
1 Answer
$\begingroup$
$\endgroup$
3
It's necessary to build a good strategy for feature selection (forward, backward, or stepwise).
If you include all the predictors in the model, your model could fit better your training set but it's not a good candidate to be generalized for the prediction due to overfitting problem.
-
1$\begingroup$ Stepwise feature selection leads to overfitting, cf. stats.stackexchange.com/questions/20836/… $\endgroup$– TimCommented Jul 20, 2015 at 9:14
-
$\begingroup$ Thanks for your reply. So I should go ahead and simplify? In the past I have used the update function in R. Thank you. $\endgroup$– GeorgeCommented Jul 20, 2015 at 9:15
-
$\begingroup$ Yes, you should look at this: stats.stackexchange.com/questions/56092/… $\endgroup$– MetariatCommented Jul 20, 2015 at 9:54