How to Delete Variables
There are a number of ways to remove variables in Q, and the method to use depends on your needs.
If you only want to prevent variables or questions from showing in your menus in Q (for example if there are a lot of junk variables stored in the data which you don't need for your analysis) you can do so by marking the variables as hidden by clicking the in the Tags column in the Variables and Questions tab. These variables can be returned again by toggling the tag.
Deleting constructed variables
Variables which have been created in Q as copies of other variables, or as formulas or filters, can be deleted by right-clicking them in the Variables and Questions tab and selecting Delete Copied or Constructed Variables. Note that if other variables depend on the variables that you want to delete then you will need to delete those other variables first.
Delete variables from the raw data
In some cases it is necessary to remove variables from the raw data entirely, for example if email addresses or other identifying information have been included in the data set. In this case a new copy of the data file must be created which does not contain these variables.
You can do this in Q by:
- Opening a new version of Q.
- Importing the data file, selecting No to any questions.
- Hiding any variables that you don't want to keep in the data (see above).
- Select Tools > Save Data as SPSS/CSV File and save it to somewhere appropriate.
- Select File > Data Sets > Update an import the modified data file.