This SAS program can be used to calculate Grocery Purchase Quality Index-2016 (GPQI-2016) total and component scores from food purchase data (dollars and cents) that have been summarized into the 29 categories of the USDA Food Plans. The code can be adapted to calculate GPQI-2016 scores for data that use a smaller number of categories.