explained variance by each perdictor variable in plsregress
6 views (last 30 days)
Show older comments
I'm using plsregress to generate a model to reproduce my variable as a function of a set of 10 predictors. I need to know the explained variance by each predictor (to select the most important ones). PCTVAR gives some information but it doesn't say which one explains the highest proportion of the variance.
If X is my matrix of predictors, and I change the order of the variables: X = [var1 var2 var3 ... varn] to X = [var3 var2 var1 ... varn], the results in PCTVAR are exactly the same.
thank you
2 Comments
Jokin Ezenarro
on 7 Aug 2021
I think that is not calculated in a PLS model, as the predictors are inside the LVs. You could use the regression vector shown in the BETA matrix, the higher the coefficient, the bigger the importance if the predictors are in the same scale.
Answers (0)
See Also
Categories
Find more on Linear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!