BookmarkSubscribeRSS Feed

Analyzing Unsegmented Data in SAS® Factory Miner

Started ‎08-04-2016 by
Modified ‎08-04-2016 by
Views 1,411

In SAS Factory Miner, when creating a project, you are required to define a segment variable by which the data is stratified.  The quick and efficient parallel analysis of each segment of the data is a key feature of Factory Miner. However, you may require baseline analysis of all the data in addition to the segmented analysis. Or, you may not have a convenient segmentation variable or don't have a need to segment the data. This tip describes how to accomplish an analysis of the full unsegmented data.


First, scan your data for a unary (constant) variable. If such a variable exists, it can function as a segment variable for the analysis. If not, you will need to add a unary dummy variable to your data before adding it as a Data Source.  Here is sample code to create a unary variable named "allData" in SAS:


data /* your data name */;
   set /* your data name */;
   allData = 1;



Note that this variable should not have any missing values. 


Next, log-in to Factory Miner and create a new project, adding your data source to the project. Once the project has been created, define your unary variable as the segment variable, and define your target variable.




Finally, build the segment profile, modify your model templates, and build your models.  The process is the same as with segmented data, but Factory Miner treats the data as a single segment.



Version history
Last update:
‎08-04-2016 10:10 AM
Updated by:


Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags