U.S. flag

An official website of the United States government

Skip Header


Decomposing the R-squared of a Regression Using the Shapley Value in SAS®

Written by:
Working Paper Number: SESUG-SD-61-2017

Abstract

After creating a linear regression model, quantifying the importance of each variable is often desired, either for academic purposes or to design the most effective interventions. This normally involves decomposing the variance, or, equivalently, R2. Using the Shapley Value, known in this literature as the LMV, it is possible to do such a decomposition. This decomposition can be applied to models with interactions and is robust against multicollinearity. It has the interpretation that it is the marginal contribution of each variable to R2. This is implemented in macro %DECOMPOSE_R2 using PROCs REG, IML, macro string functions and data step-like macro processing.

Page Last Revised - August 28, 2024
NO THANKS
255 characters maximum 255 characters maximum reached
Thank you for your feedback.
Comments or suggestions?

Top

Back to Header
loading