# In xgboost: how can I know if a variable has a negative or positive impact on probability of event

I would like to present the impact of each variable that I use in a binary:logistic model in xgboost. Is there a way or a function in R to know such a thing?

• You can use this library to help quantify and visualize the impact of each feature in your XGBoost model: github.com/slundberg/shap Mar 28, 2019 at 7:18