Reader small image

You're reading from  IBM SPSS Modeler Essentials

Product typeBook
Published inDec 2017
PublisherPackt
ISBN-139781788291118
Edition1st Edition
Right arrow
Authors (2):
Jesus Salcedo
Jesus Salcedo
author image
Jesus Salcedo

Jesus Salcedo has a PhD in psychometrics from Fordham University. He is an independent statistical consultant and has been using SPSS products for over 20 years. He is a former SPSS Curriculum Team Lead and Senior Education Specialist who has written numerous SPSS training courses and trained thousands of users.
Read more about Jesus Salcedo

Keith McCormick
Keith McCormick
author image
Keith McCormick

Keith McCormick is a career long practitioner of predictive analytics and data science. He has engaged in statistical modeling, data mining, and mentoring others in the area for more than 20 years. He has a particular expertise in helping organizations perform their first predictive analytics project or build their first predictive analytics practice, and has done so in a variety of industries including healthcare, banking, telecommunications, non-profit, direct mail, pharmaceuticals, and retail. Keith is also an established author and speaker with four books in print, or under contract. Although his consulting work is not restricted to any one tool, his writing and speaking has made him particularly well known in the IBM SPSS Statistics and IBM SPSS Modeler communities.
Read more about Keith McCormick

View More author details
Right arrow

Derive – Flag


Deriving a field as a flag is similar to deriving a field as a formula except that the expression you create will ultimately result in one of two categorical values. One of the most common methods of deriving a field as a flag is to identify whether something of interest has occurred (for example, purchasing a product, visiting a website, and so on). In this example, we will take the Stock_numbers field and collapse it into those people who have an investment and those that do not:

  1. Place a Derive node onto the canvas.
  2. Connect the Stock_numbers node to the new Derive node.
  3. Edit the new Derive node.
  4. Type Investment in the Derive field textbox.
  5. Click Flag on the Derive as drop-down list.
  6. Click the Expression Builder button.
  7. Double-click on Stock_numbers in the Fields list box.
  8. Click the greater than (>) button.
  9. Type 0.
  1. Click OK:

This equation is saying that if someone has a value greater than zero on the field Stock_numbers, the Investment field will be assigned the value T, otherwise...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
IBM SPSS Modeler Essentials
Published in: Dec 2017Publisher: PacktISBN-13: 9781788291118

Authors (2)

author image
Jesus Salcedo

Jesus Salcedo has a PhD in psychometrics from Fordham University. He is an independent statistical consultant and has been using SPSS products for over 20 years. He is a former SPSS Curriculum Team Lead and Senior Education Specialist who has written numerous SPSS training courses and trained thousands of users.
Read more about Jesus Salcedo

author image
Keith McCormick

Keith McCormick is a career long practitioner of predictive analytics and data science. He has engaged in statistical modeling, data mining, and mentoring others in the area for more than 20 years. He has a particular expertise in helping organizations perform their first predictive analytics project or build their first predictive analytics practice, and has done so in a variety of industries including healthcare, banking, telecommunications, non-profit, direct mail, pharmaceuticals, and retail. Keith is also an established author and speaker with four books in print, or under contract. Although his consulting work is not restricted to any one tool, his writing and speaking has made him particularly well known in the IBM SPSS Statistics and IBM SPSS Modeler communities.
Read more about Keith McCormick