In the interest of being a participatory citizen of the scientific community, here I offer some data analysis computer code that I have written for my own use, and that might be of use to others.

The Questionnaire on Pediatric Gastrointestinal Symptoms (QPGS) is an instrument used in research and clinical care of pediatric functional gastrointestinal disorders (FGIDs) that was developed by the Rome Foundation.

As described by the publisher (Rome Foundation):

“The Rome Foundation has developed diagnostic questionnaires in coordination with the Rome III committees to assist physicians, health care professionals and researchers in identifying individuals who have one or more functional gastrointestinal disorders.”

This GitHub repository contains code to score the Rome-III parent-report version of the QPGS for children 4 years of age and older (pdf) using IBM’s SPSS statistical program, generating FGID classifications from raw parent-reported responses using the QPGS scoring algorithm.

For input, this code takes in the SPSS-formatted output from a REDCap database export.

For output, this code generates a series of final variables (i.e. FD_dx, etc) that are binary (yes versus no) for each case in the dataset.

This code expects some variables (i.e. study_group, etc), which your database may not have; please consider this code as the starting point on which you can build. Most likely, you will need to modify this code to work for your particular dataset.

This code was written and tested using SPSS version 19. If you find an error, please let me know. Please use this code at your own risk. I can’t guarantee that I’ll be able to help you troubleshoot if a problem comes up.

A version of this code has been used in analysis of data that has been published after peer-review (i.e. here).

License: This is free and unencumbered software released into the public domain. Full license here. For more information, please refer to unlicense.org.