Toggle navigation
Home
▼ Details
Products and pricing
Chart gallery
User stories
Text analytics
CDC NAMCS Library
Blog
Tutorials
Contact
Sign in
Post Editor
← All help posts
View post
Save
Protobi has a built-in quality check or "QC" tool that allows you to identify outliers and flag respondents with low quality responses. <img src="/uploads/upload/image/5200/direct/1660044590902-1660044590902.png" alt="Quality checks dialog for Q13 showing six conditional check options including 'Any child equals', 'Any child is more than', 'Any child is less than', 'All children are equal (aka straightline)', 'Sum of children not equals', and 'If custom condition is true', each with corresponding input fields." style="box-sizing: border-box; border: 0px; max-width: calc(100% - 10px); cursor: pointer; padding: 0px 1px; user-select: none; color: rgb(56, 76, 96); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; width: 350px;" class="fr-fic fr-dib"> ## Open the QC dialog Select an element and press Shift + Q + C on your keyboard to bring up the QC dialog. <img src="/uploads/upload/image/5200/direct/1660043418958-1660043418957.png" alt="Horizontal bar chart for question Q1 asking 'Thinking about your Condition X patients, how many of those are currently receiving a GA (gamma antagonist)?' showing six response ranges with '1 to 15' having the highest percentage at 74.0%." style="width: 400px;" class="fr-fic fr-dib"> You can also select the element, then go to the "Advanced" button. Scroll to find the "QC check (beta)" option. <img src="/uploads/upload/image/5200/direct/1605117378040-1605117378040.png" alt="Dropdown menu from the Advanced menu button showing various options including 'QC checks (beta)' highlighted at the bottom with keyboard shortcut '(Ctrl G)'." style="width: 200px;" class="fr-fic fr-dib"> ## QC a single element Single elements have three pre-set QC options. These checks are usually applied to numeric questions where you want to flag and cap outlier responses. <img src="/uploads/upload/image/5200/direct/1660043993410-1660043993410.png" alt="Quality checks dialog for Q1 showing four check options with 'Q1 is more than' checked and set to value '50', while other options remain unchecked." style="width: 350px;" class="fr-fic fr-dib"> ### QC checks are stored in a special element After you add a QC check, it creates a new element called "$flags". Every time you add a new QC check, it's added to this element. 3% of respondents are flagged as Q1 > 50 and those that do not meet the criteria are shown as \[NA\]. <img src="/uploads/upload/image/5200/direct/1660044087201-1660044087201.png" alt="Horizontal bar chart for the $flags variable showing [NA] responses at 97.0% and flagged responses where 'Q1 > 50' at 3.0%, with a base of N=100." style="width: 400px;" class="fr-fic fr-dib"> ## QC a group There are more QC options for a group of questions, for instance there is a preset to check for straight-liners. <img src="/uploads/upload/image/5200/direct/1660044565688-1660044565688.png" alt="Quality checks dialog for Q13 displaying six checkbox options for flagging respondents based on Q13 children values, all currently unchecked with empty input fields." style="width: 350px;" class="fr-fic fr-dib"> ### Straight-line check Select "All children are equal (aka straightline)" to flag respondents that entered the same answer for all questions in a group. <img src="/uploads/upload/image/5200/direct/1660044739772-1660044739772.png" alt="Question Q13 showing a 7-point scale rating comparison for medical device features, with response categories ranging from ease of use to dose counter, with percentages displayed for each feature." style="width: 400px;" class="fr-fic fr-dib"> Result: <img src="/uploads/upload/image/5200/direct/1660044793645-1660044793645.png" alt="Horizontal bar chart for $flags variable displaying three categories: [NA] at 92.0%, 'straightline Q13' at 6.0%, and 'Q1 > 50' at 3.0%, with base N=100." style="width: 400px;" class="fr-fic fr-dib"> ### Remove flagged respondents [Shift + press](https://help.protobi.com/view-access/click-to-query#Shift%20+%20Press%20to%20exclude%20\(%22not%22\)-3) on flagged respondents to exclude them from the sample. Then [set a permanent filter](https://help.protobi.com/edit-access/element-filters#Apply%20permanent%20filters-2) on the question to exclude the flagged responses. <img src="/uploads/upload/image/5200/direct/1660097134001-1660097134000.png" alt="Split view showing $flags variable on the left with highlighted '[NA]' category at 98% in yellow, and Q13 question data on the right displaying device rating features with percentages." style="width: 800px;" class="fr-fic fr-dib"> ## Create your own custom flags You can define a condition to create custom flags. **Q3** asks how many Condition Y patients are on a gamma antagonist, and **S8** asks how many Condition Y patients the respondent manages. <img src="/uploads/upload/image/5200/direct/1605148429555-1605148429555.png" alt="Dual-panel view showing two questions (Q3 about Condition Y patients with GA treatment and S8 about number of patients managed per month) with Filter text boxes and Apply buttons above each chart." style="width: 779px;" class="fr-fic fr-dib"> You can set a custom condition that flags respondents that entered a greater value for **Q3** than **S8**. Custom conditions can reference any element, you can even create the QC in an element, and not include it in the condition. ### <img src="/uploads/upload/image/5200/direct/1605148479586-1605148479586.png" alt="Quality checks dialog for Q3 showing four check options with 'If custom condition is true' checked and the condition 'Q3>S8v2' entered in the input field." style="width: 380px;" class="fr-fic fr-dib"> ### Javascript operators The custom condition text box will accept conditional statements written with Javascript operators. Below is a list of to create operators you can use to create custom conditions. Arithmetic <table border="0" cellpadding="0" cellspacing="0" style="box-sizing: border-box; outline: none; border: none; border-collapse: collapse; empty-cells: show; max-width: 100%; text-decoration-style: initial; text-decoration-color: initial; margin-right: 350.039px; width: 679.5px;" width="324"><tbody style="box-sizing: border-box; outline: none;"><tr style="box-sizing: border-box; outline: none;"><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 42px; text-align: center; vertical-align: middle;" width="90.12345679012346%"><p height="21" style="box-sizing: border-box; outline: none;" width="9.876543209876543%"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">+</span></p></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 636px;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Addition</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 42px; text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">-</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 636px; text-align: left;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Subtraction</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 42px; text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">/</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 636px;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Division</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 42px; text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">*</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); width: 636px;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Multiplication</span></td></tr></tbody></table> Comparison <table border="0" cellpadding="0" cellspacing="0" style="box-sizing: border-box; outline: none; border: none; border-collapse: collapse; empty-cells: show; max-width: 100%; text-decoration-style: initial; text-decoration-color: initial; margin-right: 350.039px; width: 679.5px;" width="324"><tbody style="box-sizing: border-box; outline: none;"><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;" width="9.876543209876543%"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">==</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);" width="90.12345679012346%"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Equal</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">!=</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Not equal</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">></span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Greater than</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">>=</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Greater than or equal to</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;"><</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Less than</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;"><=</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Less than or equal to</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">===</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Equal to, and the same data type (Identical)</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">!==</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">Not identical</span></td></tr></tbody></table> Logical <table border="0" cellpadding="0" cellspacing="0" style="box-sizing: border-box; outline: none; border: none; border-collapse: collapse; empty-cells: show; max-width: 100%; text-decoration-style: initial; text-decoration-color: initial; margin-right: 350.039px; width: 679.5px;" width="324"><tbody style="box-sizing: border-box; outline: none;"><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;" width="9.876543209876543%"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">&&</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);" width="90.12345679012346%"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">AND</span></td></tr><tr style="box-sizing: border-box; outline: none;"><td height="21" style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221); text-align: center;"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">||</span></td><td style="box-sizing: border-box; outline: none; border: 1px solid rgb(221, 221, 221);"><span style="outline-color: initial; outline-width: initial; font-weight: bolder;">OR</span></td></tr></tbody></table> ## ## Advanced support There are complex cases where you might want to flag respondents, not limited to what's shown in this tutorial. Contact us at support@protobi.com to discuss your specific needs. [apply the filter](https://help.protobi.com/edit-access/element-filters#Apply%20permanent%20filters-2)
Publishing
Date
Status
Published
Draft
Slug
edit
Content
Thumbnail
Categories
Manage
New to Protobi?
Charts
Making Changes
Intermediate topics for editors
Frequently Asked Questions
SERMO Topics
Tutorial Pages
Internal Docs
Data Processing
Videos
Obsolete
GSG Admin
SERMO Admin
GSG Topics
How to...
Basics for viewers
Basics for editors
For project admins
Advanced topics
Assessments
Articles (in-progress)
New and updated articles
Process data in Protobi
superseded
Text open-end questions
Troubleshooting
Tracking studies
Organizing the view
API References
Tools
AI Database
Checking AI...
Convert to MD
Danger zone
Delete