Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Small N Stats Demand Curve Analyzer (Qt)

Small N Stats Demand Curve Analyzer is a Qt-based application that communicates with R to easily facilitate complex calculations required of behavior economic (BE) scientists.

Features include:

  • Non-linear model fittings (John Nash's modified LM optimizer, specificially suited for BE models)
  • Multiple Models available (Hursh & Silberberg's Exponential Model, Koffarnus et. al.'s Exponentiated model)
  • Easily imports common file formats into the application's spreadsheet (.xlsx)
  • Full range of BE outcome metrics (empirical and derived), saveable in common spreadsheet file formats



  • - QCustomPlot for better plotting performance
  • - Bug fixes
  • - Optimizer options - Differential Evolution
  • - Developer options
  • - Add residual/QQ plotting
  • - Bugfixes with hessians
  • - Update to global regression k ...
  • - alpha build

Referenced Works (F/OSS software)

The Small N Stats Demand Calculator uses a number of open source projects to work properly:

  • ALGLIB (3.11.0) - GPLv3 Licensed. Copyright 1994-2017 ALGLIB Project. Site
  • Differential Evolution - Copyright 2017 Milos Stojanovic Stojke. Github
  • Qt Framework (5.8) - LGPL 3.0 (GPL 3.0 Licensed). Copyright (C). Qt Team Site
  • Qt Examples (Spreadsheet, Recent Files) - BSD-3 Clause. Copyright (C). Qt Team Site
  • Tango icon set - Public Domain Licensed. Copyright (C) 2009, "Tango Desktop Project" Site
  • GNU Scientific Library - GPLv2+ Licensed. Copyright (C) 1996-2018. GNU Project Site
  • Math.NET Numerics - MIT Licensed. Copyright (C) 2002-2015. Math.NET Github
  • QCustomPlot - GPLv3 Licensed. Copyright (C) 2011-2018. Emanuel Eichhammer [Site}(

Referenced Works (R packages/scripts)

  • beezdemand R package - GPLv2+ Licensed. Copyright (c) 2016, Brent Kaplan Github

Referenced Works (academic works)

The Small N Stats Demand Calculator is based on the following academic works:

  • Hursh, S. R. and Silberberg, A. (2008). Economic demand and essential value. Psychological Review, 115, 186?198.
  • Koffarnus, M. N., Franck, C. T., Stein, J. and Bickel, W. K. (2015). A modified exponential behavioral economic demand model to better describe consumption data. Experimental Clinical Psychopharmacology, 23, 504-512.
  • Stein, J. S., Koffarnus, M. N., Snider, S. E., Quisenberry, A. J., & Bickel, W. K. (2015). Identification and management of nonsystematic purchase task data: toward best practice. Experimental and clinical psychopharmacology, 23(5), 377-386.

Acknowledgements and Credits

  • Brent Kaplan, Applied Behavioral Economics Laboratory, University of Kansas ( Github
  • Derek D. Reed, Applied Behavioral Economics Laboratory, University of Kansas ( Github
  • Donald A. Hantula, Decision Making Laboratory, Temple University Site
  • Chris Franck, Laboratory for Interdisciplinary Statistical Analysis - Virginia Tech


The Demand Curve Analyzer must be installed and will automatically update as the program is refined.


All downloads, if/when posted, will be hosted at Small N Stats.

Windows Installer

OSX Installer


Want to contribute? Great! Emails or PM's are welcome.


  • Beta testing


Demand Curve Analyzer (Qt) - Copyright 2017, Shawn P. Gilroy. GPL-Version 3


Cross platform QT application, using QTableGrid views to mediate behavior economic calculations, per current best practices.





No packages published


You can’t perform that action at this time.