labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Behavioral Psychology
      • Personality & Social Psychology
      • Cognitive & Neuro Psychology
      • Developmental & Educational Psychology
      • Clinical & Health Psychology
      • Sports & Movement Psychology
      • Marketing & Consumer Psychology
    • Labvanced Blog
  • Technology
    • Feature Overview
    • Desktop App
    • Phone App
    • Precise Timing
    • Experimental Control
    • Eye Tracking
    • Multi User Studies
    • More ...
      • Questionnaires
      • Artificial Intelligence (AI) Integration
      • Mouse Tracking
      • Data Privacy & Security
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Public Experiment Library
    • Labvanced Sample Studies
  • Pricing
    • Pricing Overview
    • License Configurator
    • Single License
    • Research Group
    • Departments & Consortia
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
  • Appgo to app icon
  • Logingo to app icon
Learn
Guide
Videos
Walkthroughs
FAQ
Release Notes
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
Guide
Videos
Walkthroughs
FAQ
Release Notes
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • Guide
    • GETTING STARTED

      • Objects
      • Events
      • Variables
      • Task Wizard
      • Trial System
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
    • FEATURED TOPICS

      • Randomization & Balance
      • Eye Tracking
      • Questionnaires
      • Desktop App
      • Sample Studies
      • Participant Recruitment
      • API Access
        • REST API
        • Webhook API
        • WebSocket API
      • Other Topics

        • Precise Stimulus Timings
        • Multi User Studies
        • Head Tracking in Labvanced | Guide
    • MAIN APP TABS

      • Overview: Main Tabs
      • Dashboard
      • My Studies
      • Shared Studies
      • My Files
      • Experiment Library
      • My Account
      • My License
    • STUDY TABS

      • Overview: Study-Specific Tabs
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
      • Task Editor
        • Main Functions and Settings
        • The Trial System
        • Canvas and Page Frames
        • Objects
        • Object Property Tables
        • Variables
        • System Variables Tables
        • The Event System
        • Trial Randomization
        • Text Editor Functions
        • Eyetracking in a Task
        • Head Tracking in a Task
        • Multi-User Studies
      • Study Settings
        • Start Up and Main Settings
        • Browsers & Devices Settings
        • Experiment Features Settings
      • Description
        • More Details about Description Information
        • Images, Links, and References in Descriptions
      • Variables
      • Media
      • Translate
      • Run
      • Publish and Record
        • Requirements for Publishing a Study in Labvanced
        • Recruiting Participants and Crowdsourcing
        • License Selection and Confirmation
        • After Publishing Your Labvanced Study
      • Sharing
      • Participants
      • Dataview and Export
        • Dataview and Variable & Task Selection (OLD Version)
        • Accessing Recordings (OLD Version)
  • Videos
    • Video Overview
    • Getting Started in Labvanced
    • Creating Tasks
    • Element Videos
    • Events & Variables
    • Advanced Topics
  • Walkthroughs
    • Introduction
    • Stroop Task
    • Lexical Decision Task
    • Posner Gaze Cueing Task
    • Change Blindness Flicker Paradigm
    • Eye-tracking Sample Study
    • Infant Eye-tracking Study
    • Attentional Capture Study with Mouse Tracking
    • Rapid Serial Visual Presentation
    • ChatGPT Study
    • Eye Tracking Demo: SVGs as AOIs
    • Multi-User Demo: Show Subjects' Cursors
    • Gamepad / Joystick Controller- Basic Set Up
    • Desktop App Study with EEG Integration
    • Between-subjects Group Balancing and Variable Setupy
  • FAQ
    • Features
    • Security & Data Privacy
    • Licensing
    • Precision of Labvanced
    • Programmatic Use & API
    • Using Labvanced Offline
    • Troubleshooting
    • Study Creation Questions
  • Release Notes
  • Classroom

Sum Scoring Questionnaries | Total Scores

To summarize scores from multiple items of a questionnaire into a single total score in Labvanced, follow these simple steps using the Event system:

  1. Create a Frame Start trigger.
  2. Create an array variable and place all of the questionnaire-related items there:
  • Set up an Array Operations → Add/Remove Array Entries action. Name the array variable (e.g.,Total Items) and add all the items you need to sum to the array (e.g., Q1, Q2, Q3, Q4).
  1. Sum all the items in the array and store it in a new variable:
  • Add a Variable Actions → Math & Statistics. Set the operation to Sum, select the array you just created as the input and create a new scalar variable to store the output score (e.g., Total Score).

These steps will be explained in more detail in the following section.

The process described here can be applied to other contexts as well, such as calculating sub-scales.

Step-by-Step Guide to Summarize and Add Questionnaire Scores

Let us look into the steps to summarize and add the scores of a questionnaire. You can apply the principles below to any questionnaire to calculate the sum of any scores.

Step 1: Add a Canvas Frame + Create a Frame Event

In the Task Editor, click + Canvas to create a new frame. This is where the scoring will happen and be displayed.

Adding a Canvas Frame in Labvanced

  • Go to the Events tab.
  • Click + Frame Event.
  • Name the event something like “Total Score Calculation”.
  • Click Next.

option to add a frame event

Step 2: Set up the Trigger

  • Select Trial and Frame Trigger.
  • Choose Frame Start as the trigger type (this triggers the event on frame onset). Based on your experimental design, you may specify a different trigger.
  • Click Next.

Steps to setup Event Trigger with trigger type ‘Frame Start’

Step 3: Set up Action to Group and Store Items

First, we need to add all the score values inside a single varriable. For that, we will need an Array.

Click Add Action → Array Operations → Add/Remove Array Entries.

Steps to setup Event Action to add an Array Operation

Click the link icon and then click Add Variable. Now define the variable as follows:

  • Name: Total Items (or something unique).
  • Format: Array
  • Data Type: Numeric

Click OK.

In the action now, continue to:

  • Set Index Type as End of Array.
  • Insert (+) the respective item variables (e.g., Q1, Q2, Q3, Q4).

Adding an Array Operation to Group and Store Items in Labvanced

Step 4: Set up Action to Sum the Array for Total Score

Click Add Action → Variable Actions → Math & Statistics.

Steps to setup Event Action to add a Math & Statistics operation

For the action, specify:

  • Type: Array Operations
  • Operation: Sum
  • Input Array: Total Items (the array you created earlier)
  • Output Array:
    • Click the link icon.
    • Choose + New Variableand specify its parameters:
      • Name: Total Score (or any other unique name)
      • Set Format: Array, Data Type: Numeric.

Adding a Math & Statistics operation to sum an array operation for Total Score calculation in Labvanced

That’s it! You now have a single score calculated by summing up the scores of four questions together.