'lift chart R with glm model or multi class classification

Is it possible to create a lift chart for glm models in R ? I know it is more meant for binary classification model but my idea was to cut the target variable into ten quantiles and assess if the predictions fall into the right quantiles which would make a classification model in a way. However I only find info for binary classification lift chart so I was wondering if a function also exist for multiclassification or if I need to write one myself.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source