Creating bagged logistic regression models

Many modeling algorithms in Modeler have Bagging and Boosting options already built-in. However, some models do not, including Logistic Regression. Even for these algorithms that do not have Bagging and Boosting, these model ensembles can help predictive accuracy significantly. In this recipe we learn how to build a bagged ensemble of logistic regression models from 10 bootstrap samples.

Getting ready

This recipe uses the datafile cup98lrn_reduced_vars3.sav and the stream Recipe – bootstrap ensemble.str.

How to do it...

To create bagged logistic regression models:

  1. Open the stream Recipe – bootstrap ensemble.str by navigating to File | Open Stream.
  2. Make sure the datafile points to the correct path to cup98lrn_reduced_vars3.sav ...

Get IBM SPSS Modeler Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.