1
$\begingroup$

I am facing an issue where I have 7 sets of different variables/columns/predictors.

I am trying to predict same target variable and I want to observe the importance/effect of all the sets according to their importance in an ordered manner. (I am trying to use ridge regression models for each of the 7 individual set as I want to keep all the variables and I want to combine the output of these 7 models, each set has more than 20 variables)

$\endgroup$
2
  • $\begingroup$ Why don't you simply rank your set of features based on how good your model is when trained by each set? $\endgroup$ Aug 22, 2018 at 6:54
  • $\begingroup$ I am looking at a business case where the order of importance of the set of predictors is pre-specified. @ValentinCalomme $\endgroup$ Aug 22, 2018 at 15:38

1 Answer 1

1
$\begingroup$

If you mean predictors by "variables", You may combine your 7 models by using "rbind or cbind" and save it into a data frame or data table. But, remember to first save your each of the 7 models into a datatable or dataframe.

About ranking, I agree with @Valentin you may want to make the predictions first, then rank it . However , if you want to take all the predictors into account there is no point to apply the ranking of all the sets. You will see their importance once you are done predicting.

Additional note: Glmnet is way more sensitive library/method when performing predictions, make sure all the columns while creating a model and doing a prediction are in the same order and have the same names. This caused me much trouble while predicting. Hopefully, this might help you.

$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.