Introduction
This article lists different ways to create numeric variables in Q. Click on the links for more information on how to use each method.
Method
Numeric Variables can be created by:
- Copying Variables or Questions (see: How to Create a Second Version of a Variable) and then recoding them by changing Question Type and editing Value Attributes
- Creating new variables using Excel-Style Formulas. These are designed for less technical people to create variables using Excel-style syntax and by pointing and clicking.
- Creating new JavaScript Variables, which are written in the JavaScript programming language. This is a more powerful way to create variables; it is much more flexible than the Excel-Style variables (but can be a little harder to use).
- Creating new variables using the Ready-Made Formulas menu (e.g., if wanting to create a new variable which is the average or sum of other variables).
Next
How to Create Categorical Variables