Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Virtual fields

Updated on May 17, 2024

Virtual fields allow you to create fields based on the ones that are available in the set of input fields known as data dictionary. Any virtual field becomes a part of the model that uses it.

In the Data analysis step, the values of virtual fields are calculated from the original field values and are subject to their own treatment (binning and grouping). This offers the ability to test different ways of treating the same data. Virtual fields are defined by using the virtual field screen.

A virtual field is an assignment in the form <variable> = <formula> . The virtual field screen hides the variable part of the equation, so that you can focus on the formula. The formula can continue over multiple lines, but a virtual field can contain only a single formula that uses fields and functions.

Types of virtual fields

Depending on the nature of the formula, a virtual field can be numeric or symbolic.

Numeric formula
Formed from the numeric fields and a large number of functions, such as logical and statistical functions.
Symbolic formula
Formed from the symbolic fields.

The type of virtual field used as the outcome in the Outcome definition screen automatically converts to the data type required by the type of model. Binary models and extended binary models require symbolic data type; continuous models require numeric data type.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us