Category:QScript Snippets
Jump to navigation
Jump to search
This page contains small snippets of QScript code that who you examples of how to perform a range of tasks with QScript. Snippets are small pieces of code, and unlike the examples in the QScript Online Library, they are not designed to be run from within Q.
General utilities
Rebasing variables and questions
- Rebasing a Pick One Question
- Hiding a Category in a Pick One Question
- Rebasing Questions Using a Condition
Recoding/changing questions
- Hiding a Category of a Question
- Creating Top and Bottom 2 or 3 Box NETs for all Questions with 5 or 7 Categories
- Creating Top and Bottom 2 or 3 Box NETs for all Questions with 5 or 7 Categories and Adding Values to Labels
- Recoding Into New Variables
- Filtering Variables
Creating and setting variables and questions
- Moving Questions to the Top of the Blue Dropdown
- Reordering Variables
- Creating JavaScript Variables
- Setting a Pick Any Question
- Copying/Duplicating a Question
- Creating a Banner
- Creating a Nested Banner
- Hiding a Question
- Fixing the labels prior to setting a Pick Any question
- Relabel Variable and Value Labels
Creating tables and charts
Modifying tables and charts
- Changing Table Name to Include Category Name With Lowest p-Value (Highest Confidence)
- Changing Statistics Shown on Table
- Changing the Order of Rows or Columns for All Tables that Share the Same Code Frame
Automating analysis (writing reports)
- Conditional Table Creation
- Create Tables and Plots for All Questions Filtered by Age
- Setting Up and Analyzing a Project
- Specify Names for Tables in the Report
- Automatically Export to Excel
Auditing and Data Cleaning
- Auditing a Project
- Warning for Missing Variables
- Using Scripts to Automate Data Checking and Cleaning
Manipulating data files
Pages in category 'QScript Snippets'
The following 39 pages are in this category, out of 39 total.
A
C
- Changing Statistics Shown on Table
- Changing Table Name to Include Category Name With Lowest p-Value (Highest Confidence)
- Changing the Order of Rows or Columns for All Tables that Share the Same Code Frame
- Checking for Invalid Data
- Checking ID Variable
- Checking the Number of Selections in Questions
- Checking to See if a Data File Has Been Imported
- Conditional Table Creation
- Copying/Duplicating a Question
- Create Tables and Plots for All Questions Filtered by Age
- Creating a Banner
- Creating a Column Plot
- Creating a Crosstab
- Creating a Frequency Table
- Creating a Nested Banner
- Creating Diagnostic Messages
- Creating JavaScript Variables
- Creating Top and Bottom 2 or 3 Box NETs for all Questions with 5 or 7 Categories
- Creating Top and Bottom 2 or 3 Box NETs for all Questions with 5 or 7 Categories and Adding Values to Labels