Creating calculated variables

Cxoice provides two question types for calculated variables: Derived – which are stored with the questionnaire data, and Tempvar – which are calculated but not stored.

 

It is useful for areas such as calculating which segment someone belongs to by combining questions together, or for creating price points for testing.

 

To create a derived question type you use a formula. For instance:

 

Calculation formula: speed * time

 

It can also be used to manage lists – for instance combining, shuffling or splicing a list, or to pick a value from a list. The following are examples of functions for managing lists

 

PICKITEM, NTHITEM, DROPITEM, SPLICE, SHUFFLE, COMBINE

 

 

Derived and Tempvar question types are never seen on screen, so you can add notes in the Question/Text box to explain the purpose of the calculation if required.

 

Calculated variables are calculated and created at the PageBreak that corresponds to the page the variable is defined on.


Previous article: List questions and List manipulation Next article: Debugging formula and calculations
More details

Go to Notanant menuWebsite accessibility

Access level: public

Page feedback

This site uses essential cookies only. By continuing to use this site you accept our use of cookies: OK
Show or hide the menu bar