Interactive Figure 3

NOTE: since Google Sites switched to a new format, this page no longer works correctly. I'll fix it sometime when I have the time

This page has an interactive version of Figure 3 from the paper. If you do not see a figure on this page below these notes, please see the note at the bottom of the page. If you do see the figure, here are a few comments on it:

  • You can change the prices and value of the cardholder benefit/fee by clicking the - and + buttons to the left of the variables. By default, these buttons change prices in increments of 0.25, but this can be changed where it says "Price Button Step Size" near the bottom.

  • Initially the No Surcharge Rule is imposed. To allow surcharging, click the button below the values (click it again to impose the No Surcharge Rule again).

  • If you would prefer to have the controls above the figure, you can click the button at the bottom that says "Swap Horizontal/Vertical Layout". The "Reset" button returns the parameters and prices to their initial values.

You can also try a version written in Mathematica here. If you encounter any problems or difficulties, or if you have any questions, please feel free to contact me.

If you do not see the figure above this note:

First, keep in mind that I am an economist, not a web developer. I just taught myself enough HTML5/javascript in part of a day to get this to work (and to work within Google sites). I tested it on several different browsers and operating systems, but it is not fully robust and might not work for everyone. If you do not see the figure, there are a few things you can try:

  • If your browser blocks javascript, try enabling it.

  • The figure you should see uses javascript and an HTML5 canvas inside a Google site "HTML Box." Google's "HTML Box" is not perfect. You can try an alternative version that uses a Google Apps Script instead. It loads onto the page differently, so it might work if the version on this page does not, but the code itself is the same javascript and HTML5 canvas so it probably won't help. The Google Apps Script version might only work in Google Chrome. It is available here.

  • If neither of these works, there is also a version written in Mathematica, available here. Even if the version on this page does work, the Mathematica version is usually faster once it loads and it is easier to change the parameters and prices. It does require, however, that you have the free Wolfram Mathematica CDF player installed. There is a note at the bottom of that page about how to install it.