Abstract
beezdemand: Behavioral Economic Easy Demand, a novel package for performing behavioral economic analyses, is introduced and evaluated. beezdemand extends the statistical program to facilitate many of the analyses performed in studies of behavioral economic demand. The package supports commonly used options for modeling operant demand and performs data screening, fits models of demand, and calculates numerous measures relevant to applied behavioral economists. The free and open source beezdemand package is compared to commercially available software (i.e., GraphPad Prism™) using peer-reviewed and simulated data. The results of this study indicated that beezdemand provides results consistent with commonly used commercial software but provides a wider range of methods and functionality desirable to behavioral economic researchers. A brief overview of the package is presented, its functionality is demonstrated, and considerations for its use are discussed.
Keywords: behavioral economics, demand, R programming language, behavioral science, purchase task, free and open source software
Introduction
Individual choice and decision making are frequently studied topics in the behavioral sciences and various frameworks have been put forward to quantify choice behavior (Baum, 1974; Bickel, DeGrandpre, & Higgins, 1993; Herrnstein, 1961; Kagel, Battalio, & Green, 1995). One approach—behavioral economics—has been increasingly used as a framework for examining choice and decision making under constraint (Hursh, 1991; Hursh & Roma, 2013) and this approach has been especially useful in evaluating how environmental influences and individual differences affect patterns of decision making (Bickel et al., 1993; Bickel, Madden, & Petry, 1998). Under the umbrella term of “behavioral economics,” Consumer Demand Theory (Hursh & Bauman, 1987; Reed, Niileksela, & Kaplan, 2013) has been useful for understanding how individuals come to purchase and consume certain goods over others (e.g., varying prices, the presence of substitutes). In this approach, the emphasis is placed on the relationships between specific commodities and the individual’s demand for them over some domain of cost (Hursh, 1980, 1984).
Behavioral economics has been used effectively to enhance the understanding of drug valuation and the abuse liability of drugs (Bickel, Johnson, Koffarnus, MacKillop, & Murphy, 2014) including nicotine (Bickel, DeGrandpre, Hughes, & Higgins, 1991; Bickel, Odum, & Madden, 1999; Bidwell, MacKillop, Murphy, Tidey, & Colby, 2012; Grace, Kivell, & Laugesen, 2014; Jacobs & Bickel, 1999; Koffarnus, Wilson, & Bickel, 2015b; MacKillop et al., 2012a; MacKillop et al., 2012b; Mackillop et al., 2016; MacKillop et al., 2008; MacKillop & Tidey, 2011; Madden & Kalman, 2010; O'Connor, Bansal-Travers, Carter, & Cummings, 2012; Quisenberry, Koffarnus, Hatz, Epstein, & Bickel, 2015; Wilson, Franck, Koffarnus, & Bickel, 2016), alcohol (Bickel, Marsch, & Carroll, 2000; MacKillop, 2016; MacKillop & Murphy, 2007; Murphy & MacKillop, 2006; O'Connor et al., 2014; Spiga, Martinetti, Meisch, Cowan, & Hursh, 2005), heroin (Greenwald, 2010; Greenwald & Hursh, 2006; Greenwald & Steinmiller, 2009; Jacobs & Bickel, 1999), marijuana (Aston, Metrik, Amlung, Kahler, & MacKillop, 2016; Aston, Metrik, & MacKillop, 2015; Vincent et al., 2017), “bath salts” (Johnson & Johnson, 2014), and cocaine (Bruner & Johnson, 2014; Strickland, Lile, Rush, & Stoops, 2016). Further, behavioral economics has been expanded to examine decision making in domains of health- and nonhealth-related choices (Bickel & Vuchinich, 2000; Epstein, 1995; Epstein, Dearing, Roba, & Finkelstein, 2010; Epstein et al., 2018; Epstein & Saelens, 2000; Jarmolowicz, Reed, Reed, & Bickel, 2016; Reed, Kaplan, Becirevic, Roma, & Hursh, 2016; Roma, Hursh, & Hudja, 2016), consumer behavior (Foxall, Olivera-Castro, Schrezenmaier, & James, 2007; Foxall, Wells, Chang, & Oliveira-Castro, 2010), organizational behavior management (Henley, DiGennaro Reed, Kaplan, & Reed, 2016a; Henley, DiGennaro Reed, Reed, & Kaplan, 2016b), as well as in assessments and treatments for individuals with developmental disabilities (Gilroy, Kaplan, & Leader, 2018a; Reed et al., 2013).
At present, the tools developed to assist researchers in applying models of demand have been derived almost exclusively from the GraphPad PrismTM (GP; La Jolla, CA, USA; www.graphpad.com) statistical program (Hursh & Roma, 2014; Reed, 2015). Although this software features the nonlinear modeling methods necessary to apply models of operant demand, a heterogeneous range of supplemental software has been developed by applied researchers to provide methods that are not provided by the GP program (e.g., data screening, demand indices). This gap in functionality has naturally led to substantial variability in how demand curve analyses are performed and how results are analyzed (Kaplan et al., 2018). Given this limitation in the tools available to researchers, the beezdemand package (Kaplan, 2018) was developed to provide a robust, comprehensive, and accessible set of methods that can perform the many operations and analytical techniques required when performing demand curve analyses. The purpose of this article is (1) to provide a brief primer of behavioral economic demand, (2) to review the primary functions1 and structure of the beezdemand package, and (3) to validate results of beezdemand against commercial software traditionally used for these purposes (i.e., GP).
The Demand Curve
Behavioral economic demand examines the extent to which an individual will defend its intake (i.e., purchasing, consumption) of a good as the price of that good increases (Hursh, 1978). The demand curve is typically downward sloping, with initial price increases resulting in relatively smaller changes in levels of consumption and relatively larger changes in consumption following greater increases in price (Hursh, Raslear, Bauman, & Black, 1989; Hursh & Roma, 2013). Figure 1 displays a representative demand curve (described below). Several metrics can be obtained from the demand curve, either from the observed data themselves or from derivation via nonlinear regression techniques. Table 1 lists these various metrics along with a brief description of each.
Table 1.
Demand Metric | Symbol | Observed or Derived | Description |
---|---|---|---|
Intensity | Q 0 | Observed/Derived | Level of consumption or likelihood of purchase at low or no costs (e.g., free). Also termed “maximum demand” |
k | k | Observed/Derived | The range of consumption in logarithmic units |
Alpha | α | Derived | The rate of change in elasticity across the demand curve. Inversely related to value (e.g., smaller values indicate higher demand) |
Generalized Essential Value | EV | Derived | Relatively Q0- and k-independent measure of reinforcing value. Larger values indicate higher demand |
Breakpoint 1 | BP 1 | Observed | The highest price in which there is any consumption or likelihood of purchase |
Breakpoint 0 | BP 0 | Observed | First price in which there is no consumption or 0% likelihood of purchase. Fully suppressed responding |
Price maximum | P max | Observed/Derived | The price associated with unit elasticity (slope = -1). Indicates the transition from inelastic to elastic. |
Output maximum | O max | Observed/Derived | Maximum output or expenditure at price Pmax |
Several models have been developed to describe operant demand. The first of these models (i.e., Linear Model) was proposed by Hursh et al. (1989), which takes the form shown in Equation 1.
1 |
In this model, Q is the amount of consumption, P is unit price, L is the intercept or the derived amount of consumption as P approaches zero, b is the initial slope of the demand curve, a is the parameter that represents decreases in consumption as a function of increases in price, and u is the error term (i.e., residuals). Although never explicitly specified in Equation 1, we assume the error term in nonlinear least squares to be normal such that E[u] = 0 and . Limitations of Equation 1 prompted an alternative method of modeling demand curves, as estimates from Equation 1 may result in unrealistic values (Hursh & Silberberg, 2008). For example, estimates of L may be inflated and estimates of b take on positive values, indicating an initial increase in consumption at low prices. Increases in consumption with increases in price are not to be expected as such patterns would violate the law of demand (Samuelson & Nordhaus, 2009).
The Exponential Model was proposed by Hursh and Silberberg (2008) and describes demand similarly to Equation 1, but improves upon it in several ways. The Exponential Model takes the form shown in Equation 2.
2 |
In the Exponential Model, Q reflects consumption at each unit price (i.e., C) and Q0 reflects consumption when the unit price is zero (i.e., free). The parameter Q0 is also termed the maximum level or “intensity” of demand. The scaling constant k reflects the range of consumption in logarithmic units and contributes to the demand curve’s elasticity by bounding the range of the Equation 2 best-fit function. Considerations for determining scaling constant k are discussed later in this article. As with Equation 1, we assume the error term (u) in nonlinear least squares to be normal such that E[u] = 0 and . Advantages of the Exponential Model include reducing the measure of essential value to a single parameter, α, and providing more accurate estimates of consumption near a unit price of zero (i.e., Q0).
Because goods may differ in scalar properties such as magnitude or dose, the Exponential Model accounts for scalar differences by standardizing price in relation to the individual’s intensity of demand, i.e. Q0 ∙ C (see also Hursh & Winger, 1995). Thus, setting k as a constant and standardizing price in relation to Q0 isolates changes in elasticity across the demand curve in one rate-constant α. Log transformations are used because elasticity is determined by the slope of the demand curve in log-log coordinates; when data are plotted in log-log coordinates, relative unit changes in consumption can be compared to relative unit changes in price (Hursh, 1980; Lea, 1978). Accordingly, α describes the rate of change of elasticity across the entire demand curve.
With both models, however, consumption values equal to zero are unable to be fitted given the logarithmic transformations of Q. To address concerns associated with consumption values equal to zero, standard practice has been to either omit completely or replace with seemingly arbitrarily small non-zero values (e.g., .1, .01, .001; Kaplan et al., 2018), although differences in these small values are magnified in logarithmic coordinates. Omitting zero values (which are usually at the tail end of the demand curve) gives rise to a statistical issue of missing data that does not occur at random. In an attempt to address this issue, Koffarnus, Franck, Stein, and Bickel (2015a) proposed an alternative formulation of the Exponential Model, wherein individual terms were exponentiated. This rearrangement of terms removed the need to perform logarithmic transformations of Q, allowing consumption values equal to zero to be included in model fitting. The form of the Exponentiated Model is shown in Equation 3.
3 |
In this model, the parameters included are the same as in the Exponential Model. Although individual terms are exponentiated, the error term (u) is still assumed to be normally distributed (E[u] = 0 and ). Koffarnus et al. (2015a) evaluated both an empirical dataset (Experiment 1) and a simulated dataset (Experiment 2) and the authors suggested that the Exponentiated Model had advantages over the Exponential model when zero values are omitted or replaced with a small, nonzero numbers. However, we note that the empirical and simulated datasets evaluated by Koffarnus et al. (2015a) exemplified the issue of zero values and, as a result, contained a high proportion of zero values. Given the contemporary use of the Exponential and Exponentiated Models over the Linear Model, we focus on the two most recent equations throughout the rest of the article.
Aside from fitted model parameters, other dimensions of the demand curve have proven useful in understanding the extent to which reinforcers maintain responding under varying price constraints. Two of these measures, Pmax and Omax, reflect the point of unit elasticity (i.e., where the slope in relative units equals -1) and maximum output, respectively (Hursh, 1980; Lea, 1978). The third measure is breakpoint, defined as either the first price at which the organism does not obtain a reinforcer (BP0) or the last price at which the organism does earn at least one reinforcer (BP1; see Katz, 1990). The segment of the demand curve to the left of Pmax, characterized by the relatively flat line (i.e., 0 > slope > -1), refers to the inelastic portion of the demand curve, whereas the segment to the right of Pmax, characterized by the downward sloping line (i.e., slope < -1), refers to the elastic portion. That is, when the slope is inelastic, one relative unit increase in price is met with less than one relative unit decrease in consumption; when the slope is elastic, one relative unit increase in price results in greater than one relative unit decrease in consumption (Lea, 1978). As mentioned previously, several measures, including Q0, Pmax and Omax, can be determined in two ways (see also Table 1): (1) an estimated or derived value can be obtained based on values derived from the fitted models (Hursh, 2014; Hursh & Roma, 2013) and (2) an observed value can be obtained by visually analyzing the data (Greenwald & Hursh, 2006). Both measures of breakpoint (i.e., BP0, BP1) are typically observed.
Whereas the demand curve describes the extent to which consumption changes as a function of unit price, the response output curve, also known as the expenditure curve, describes how overall levels of responding change across a range of prices (Hursh, 1980, 1984; Hursh, Raslear, Shurtleff, Bauman, & Simmons, 1988). The expenditure curve has a ∩ (i.e., inverted ⋃) shape wherein total expenditure increases to a point (i.e., maximum output; Omax) and then declines thereafter (Hursh, 1991). The increase in expenditure is associated with the inelastic portion of the demand curve and the decrease is associated with the elastic portion. Maximum expenditure is typically associated with the point of unit elasticity (i.e., Pmax) of the demand curve (Hursh, 1991; Samuelson & Nordhaus, 2009). Total expenditure is calculated by multiplying unit price by the number of reinforcers consumed at that unit price.
beezdemand Package for R
To consolidate existing methods and approaches for applying behavioral economic analyses, we have developed a statistical package to extend the statistical program (R Core Team, 2018). The statistical program is a free and open-source program used to perform many types of statistical analyses and can be extended by peer-reviewed packages. Beezdemand was designed to provide a centralized collection of behavioral economic methods that are openly available, free-of-charge, and subject to peer-review. The latest stable release of beezdemand will always be found on the Comprehensive R Archive Network (CRAN; https://CRAN.R-project.org/package=beezdemand). Among the features included, beezdemand provides methods for easily: obtaining descriptive measures (), detecting nonsystematic data (), detecting and replacing outliers (), determining scaling constants (i.e., k), applying one of several models of behavioral economic demand (), generating standardized figures (), and comparing whether parameter values differ between groups (). In addition to modeling, a range of summary measures, statistical metrics, and graphical illustrations specific to behavioral economic demand analyses are provided. To assist new or infrequent users of , we provide a brief introduction to along with a more thorough description of the functions in the beezdemand package in the supplemental document, “Introduction to R and beezdemand” accessible via the following link https://github.com/brentkaplan/beezdemand/tree/master/pobs (see also the Appendix). We encourage more experienced users of to consult the package vignette. Before displaying the validation results, we briefly describe some of the functions available in the beezdemand package.
The function returns a data frame2 (i.e., table) containing the following descriptive statistics from demand data at each price: mean, median, standard deviation, minimum, and maximum consumption, the proportion of zero values, and number of missing values (not available or NA in nomenclature). This function optionally provides a box-and-whisker plot as well. An example reporting of these measures is provided in Koffarnus et al. (2015a).
The function applies the three criteria proposed by Stein, Koffarnus, Snider, Quisenberry, and Bickel (2015) for identifying nonsystematic purchase task data. This function also reports the number of consumption values equal to or greater than zero. The three criteria include trend (∆Q; i.e., a global reduction in consumption; requiring at least a 0.025 log-unit reduction in consumption per log-unit range in price), bounce (i.e., price-to-price increases in consumption; requiring less than or equal to 10% of prices increments resulting in consumption increasing no more than 25% of initial consumption), and reversals from zero (requiring no instances of two consecutive zeros followed by a nonzero consumption value). This function accepts arguments for each of these criteria in cases where they might be modified.
The function takes a data frame of numerical values (e.g., consumption values, demand metrics), identifies values greater and/or less than 3.29 SDs (Tabachnick & Fidell, 2013), and recodes those values depending on user specification (e.g., one unit higher than the greatest nonoutlying value; i.e., Winsorizing). We have found this to be a common approach in the purchase task literature (Kaplan et al., 2018).
The function analyzes demand data using one of the three aforementioned models of demand. Demand data can be analyzed at the individual or group level, the scaling constant k can be determined in several ways (e.g., from the observed range of y values, as an individually fitted derived parameter, as a global shared derived parameter), and lower and upper bounds on parameters can be specified. This function returns a data frame of both empirical and derived parameters and can optionally return model objects, the original data used in fitting, and the predicted levels of demand for use in figures. This routine depends on the nlmrt (Nash, 2016) and nls2 (Grothendieck, 2013) packages to fit the demand equations. These two packages support the identification of suitable starting points, which are then supplied to the default optimization function, nls, in the statistical program (R Core Team, 2018). Briefly, the nls function uses an algorithm based on Newton’s method for finding roots. In particular, the Gauss-Newton approach was used with models of operant demand whereby optimization of parameters (i.e., minimizing the sum of squared residuals) is performed using the first derivatives only. The nls function is used at default settings, unless set otherwise, with a maximum of 1,000 iterations.
The function accepts results from and produces figures for each of the participants in the fitted dataset. When aggregate level data are calculated using , a single figure for those data will be produced. Figures produced by beezdemand are provided in both vector-based (e.g., Portable Document Format) and rasterized formats (e.g., Portable Network Graphic).
Lastly, the function performs an Extra Sum-of-Squares F-test to evaluate if one global parameter (either Q0 or α) better represents various curves than parameters fitted for each group. Like the function, a data frame object is returned along with fitted model parameters, as desired.
Validation of beezdemand
To evaluate the accuracy, reliability, and precision of this new software package, the results produced by beezdemand were compared to those produced by the GP statistical program. At present, two GP templates are available for download and use in performing demand curve analyses (Hursh & Roma, 2014; Reed, 2015). For the purposes of this study, both statistical tools were compared using the Exponential and Exponentiated models of demand. Comparisons were performed using data from simulations as well as from a peer-reviewed study.
Method
Simulated Study Data
Simulations were constructed to allow for a comparison of both software packages across a wide range of possible demand curve scenarios. Simulated consumption data were derived from the means and standard deviations of group-level responding for 914 participants in an Alcohol Purchase Task (Kaplan & Reed, 2018). From these data, a total of 1,000 hypothetical series of consumption values were simulated across the following prices: $0.00 (free), $0.25, $0.50, $1.00, $1.50, $2.00, $2.50, $3.00, $4.00, $5.00, $6.00, $7.00, $8.00, $9.00, $10.00, $15.00, and $20.00. Simulations were performed using the statistical program and both the simulated data and source code necessary to recreate these simulations have been openly shared and instructions for acquiring these are available in the Appendix. From these simulated values, only series that passed all three of the Stein et al. (2015) criteria for systematic responding were included in the simulated dataset.
Real-World Study Data
Published study data were re-analyzed to evaluate the accuracy and precision of beezdemand in relation to the GP computer program. Data from Kaplan and Reed (2018) were reanalyzed using both programs. In Kaplan and Reed (2018), participants were recruited using the Amazon Mechanical Turk (mTurk;, n.d. platform). The mTurk platform has been used effectively to conduct a range of behavioral economic research (Morris et al., 2017; Roma et al., 2016). A total of 1,104 participants completed a standard form of the Alcohol Purchase Task (APT; Kaplan et al., 2018; Murphy et al., 2013) delivered using the Qualtrics® Research Suite web service. In the APT, participants reported the number of alcoholic drinks they would purchase and consume at a range of prices. All participants completed a standard version of the APT followed by a modified APT framed in terms of a drink special. For the purposes of the present article, we only analyzed responses from the standard APT. The APT included the following prices: $0.00 (free), $0.25, $0.50, $1.00, $1.50, $2.00, $2.50, $3.00, $4.00, $5.00, $6.00, $7.00, $8.00, $9.00, $10.00, $15.00, and $20.00. Using the data from 1,104 participants, the Stein et al. (2015) criteria were applied. Only participants demonstrating systematic consumption (i.e., meeting all three criteria) were included in subsequent analyses, resulting in 914 complete cases. For all other details related to the study, readers are encouraged to consult Kaplan and Reed (2018).
Data Analysis
As noted earlier, the function can determine the scaling value k several different ways. We mention these methods because there are currently no agreed upon recommendations for determining k and because values of α are not invariant across different k values. The default method calculates k by taking the difference between the minimum consumption and maximum consumption values across all datasets in logarithmic units and subsequently adds 0.5.3 Adding this amount was originally proposed by Hursh in an early iteration of a Microsoft Excel spreadsheet used to calculate demand metrics. Beezdemand adopts this adjustment for two reasons. First, when fitting Q0 as a derived parameter, the value may exceed the empirically observed intensity value. Thus, a k value calculated based only on the observed range of data may underestimate the full fitted range of the curve. Second, we have found that values of α (as well as values that rely on α, i.e. approximate Pmax) display greater discrepancies when smaller values of k are used compared to larger values of k. An important note is that this method sets k as a constant in Equations 2 and 3 and is not solved for in the fitting process.
As an alternative, k can be specified as a single shared parameter (solved for in the fitting process), whereby k is fit “globally” and other parameters (e.g., Q0, α) are fit “locally.” In this approach, each dataset will have its own individualized Q0 and α and all datasets will have a common k value. Whereas all three parameters are optimized for a given sample of data, this approach is more computationally demanding. Finally, k can be determined for each individual dataset as a constant (i.e., observed range of consumption) or as a fitted parameter; however, we do not necessarily recommend these latter two approaches in practice because α varies with changes in k and, as such, α values should not be compared across datasets with differing ks.
For the current analyses, k was calculated separately for the real-world study and simulated validation sets using the default approach just described (the observed range of consumption in logarithmic units and adding 0.5). Thus, the resulting k values were 1.7608 and 5.3116 for the real-world study data and simulated validation set, respectively. Within each dataset, however, the same values were used when fitting both the Exponential and Exponentiated models. Both software programs applied nonlinear model fitting using default settings. Both beezdemand and GP were run on MacOS using version 3.5.1 and GP version 7.0a, respectively.
Results
Simulated Validation Dataset
The top half of Table 2 provides a descriptive summary of fitted model parameters from the Exponential and Exponentiated models across the two software packages. In the case of the results from the simulated dataset, there were no discrepancies in the measures obtained from the two software packages (all rs = 1, ps < .0001). Figure 2 displays the high correspondence of results from the simulated validation dataset.
Table 2.
Empirical Validation Dataset
The bottom half of Table 2 displays a descriptive summary of parameters from the Exponential and Exponentiated models across both software packages. As indicated in Table 2, values obtained from both programs were nearly identical up to five significant digits (all rs = 1, ps < .0001). Discrepancies primarily occurred in calculations of R2. GraphPad Prism will output R2 values of one in cases of a perfect fit (i.e., no degrees of freedom). Beezdemand will output NA (i.e., not available, missing) in extreme circumstances, as those data might warrant further inspection. Figure 3 displays correspondence between the two programs via scatter plots.
Discussion
Behavioral economics is increasingly used as a framework for understanding choice behavior and this framework is used across various disciplines. Researchers from fields of study including health (Bickel & Vuchinich, 2000), addiction (Bickel et al., 2014), nutrition (Epstein et al., 2018), organizational behavior management (Henley et al., 2016a; Wine, Gilroy, & Hantula, 2012), and public policy (Hursh & Roma, 2013) have used the operant demand methodology to better understand various challenges and disorders. However, whereas a wide range of users employ demand-based methodology relatively few peer-reviewed options exist for conducting demand analyses. The purpose of this article was to (1) provide a brief primer of behavioral economic demand, (2) overview the main functions and workflow of the beezdemand package, and (3) validate results of beezdemand against those from a popular commercial software program. The most recent stable release of the package can be installed directly from the Comprehensive R Archive Network (https://CRAN.R-project.org/package=beezdemand).
Beezdemand extends and integrates behavioral economic demand tools into a single, dedicated software package. Whereas screening for systematic data and calculations of advanced demand indices would typically be conducted in standalone spreadsheet software (Hursh & Silberberg, 2008; Kaplan & Reed, 2014; Stein et al., 2015) beezdemand integrates these tools into one package. In addition, the package is especially well-suited to analyze many datasets at one time. In recent years, there has been an increase in the number of studies utilizing crowdsourced platforms such as Amazon Mechanical Turk (Morris et al., 2017; Roma et al., 2016; Snider, Cummings, & Bickel, 2017; Strickland & Stoops, 2018), with which large participant samples can easily be obtained. Given that GP presents with certain limitations (i.e., at the time of this writing, a hard limit of 256 cases), beezdemand provides a true solution for working with large datasets in several ways. First, certain analyses (e.g., sharing one parameter globally while fitting other parameters locally; e.g., shared k), which were unable to be conducted using existing commercial software, can now be accomplished effortlessly when more than 256 cases are present. Second, the suite of functions in beezdemand have been designed to allow for a more consistent workflow. In a basic workflow, data would be examined by , unsystematic cases would be identified by , and data would be fit, evaluated, displayed, and compared using , , , and .
Tools such as beezdemand address a growing need to extend and expand upon tools for behavior economic analyses (see also Gilroy, Franck, & Hantula, 2017; Gilroy, Kaplan, Reed, Koffarnus, & Hantula, 2018b). Beezdemand extends existing solutions while based on an open-source framework, , allowing others to use and modify free of charge. There are numerous advantages of using an open-source programming language such as (e.g., leveraging user-made packages with abilities to directly interact with services such as Amazon Mechanical Turk and Qualtrics® Research Suite), and notwithstanding its rising popularity in academia (Tippmann, 2015) it provides cross-platform compatibility (Macintosh OS, Linux, Windows) and a high degree of customizability. Further, utilizing open-source programming languages helps move science toward enhancing transparency and improving replicability (Open Science Collaboration, 2012). Towards this end, the functions in beezdemand can be used seamlessly within dynamic documents (e.g., knitr, R Markdown; Xie, 2016) to create full, reproducible manuscripts, a benefit of which is the ability to exactly document and recreate the steps used during the import, cleaning, data analysis, and visualization stages of a research project.
With respect to releasing tools under open source terms, work that is transparent and under version control is reflective of an evolving culture of open scholarship. Consistent with the recommendations of the Open Science Collaboration (2012), the specialized methods and analyses featured in beezdemand are released and stored in a public repository (i.e., GitHub) and managed by the open source community (i.e., Comprehensive R Archive Network). Transparency and openness in the development and dissemination of novel methods is important, both for the proper crediting of authors for their work as well as the recognition of those who have contributed to and maintained these resources. Further, centralized features such as issue-tracking also provide means of maintaining and supporting peer-reviewed works in years that follow.
Future Directions
The results from this study indicate that the beezdemand package provides results commensurate with commercial software used in behavioral economic research; however, there are several areas that warrant future consideration. First, beezdemand is entirely written in the programming language and, thus, may present barriers for use among clinicians and researchers not familiar with the software program (see Gilroy et al., 2018b, for alternative open source software providing a Graphical User Interface). Efforts were made, however, to allow beginner users to easily interact with the package and most functions in the package contain details related to their use, as well as example code. In addition, numerous resources exist for new users to learn the programming language (e.g., the Use R! series,n.d.; Swirl, n.d.; StackOverflow, n.d.), thus minimizing barriers to adoption. In efforts to promote adoption, we direct readers unfamiliar with to consult the supplemental document, “Introduction to R and beezdemand” accessible via the link in the Appendix.
Second, beezdemand is predominantly focused on one area of operant behavioral economics. Although the methods evaluated here provide a robust extension to the tools currently available, additional development is necessary to increase the range of analyses provided in this package. For example, future developments will include additional techniques and methods such as normalization procedures (Hursh & Winger, 1995), two-part and mixed-effect modeling (Liao et al., 2013; Yu, Liu, Collins, Vincent, & Epstein, 2014; Zhao et al., 2016), measures of amplitude and persistence (Bidwell et al., 2012; MacKillop et al., 2009), enhanced graphical capabilities, as well as other features. As the behavioral economic field advances and new metrics and approaches are empirically validated, beezdemand will integrate this new knowledge to provide an expansive set of cutting-edge tools. We encourage users to explore the full functionality of the beezdemand package and consider contributing and submitting issues on the package’s GitHub (n.d.) page (https://github.com/brentkaplan/beezdemand).
Acknowledgments
We would like to express our sincere gratitude to Paul E. Johnson (Center for Research Methods and Data Analysis, Lawrence, KS), Peter G. Roma (National Aeronautics and Space Administration Johnson Space Center, Houston, TX), W. Brady DeHart (Virginia Tech Carilion Research Institute, Roanoke, VA), and Michael Amlung (Cognitive Neuroscience of Addictions Laboratory, Hamilton, ON) for their helpful feedback and advice on early iterations of the beezdemand package.
Appendix
Introduction to R and beezdemand: https://github.com/brentkaplan/beezdemand/tree/master/pobs
Latest stable release package location: https://CRAN.R-project.org/package=beezdemand
Latest development package location: https://github.com/brentkaplan/beezdemand
Simulation script location: https://github.com/brentkaplan/DemandCurveSimulations
Footnotes
Although the term “method(s)” would also be appropriate here, we use the term “function(s)” to maintain consistent nomenclature within R Statistical Software.
A “data frame” in R nomenclature can be most easily thought of as a table, or as a single Microsoft Excel worksheet.
We note that 0.5 is the default value, but that beezdemand allows the user to specify the value of this added constant, and that future updates to the package will reflect the current state of best practices in the literature.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- Amazon Mechanical Turk. (n.d.). [Computer software]. Retrieved from https://www.mturk.com
- Aston ER, Metrik J, Amlung M, Kahler CW, MacKillop J. Interrelationships between marijuana demand and discounting of delayed rewards: Convergence in behavioral economic methods. Drug & Alcohol Dependence. 2016;169:141–147. doi: 10.1016/j.drugalcdep.2016.10.014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Aston ER, Metrik J, MacKillop J. Further validation of a marijuana purchase task. Drug & Alcohol Dependence. 2015;152:32–38. doi: 10.1016/j.drugalcdep.2015.04.025. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Baum WM. On two types of deviation from the matching law: Bias and undermatching. Journal of the Experimental Analysis of Behavior. 1974;22(1):231–242. doi: 10.1901/jeab.1974.22-231. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bickel WK, DeGrandpre RJ, Higgins ST. Behavioral economics: a novel experimental approach to the study of drug dependence. Drug & Alcohol Dependence. 1993;33(2):173–192. doi: 10.1016/0376-8716(93)90059-y. [DOI] [PubMed] [Google Scholar]
- Bickel WK, DeGrandpre RJ, Hughes JR, Higgins ST. Behavioral economics of drug self-administration. II. A unit-price analysis of cigarette smoking. Journal of the Experimental Analysis of Behavior. 1991;55(2):145–154. doi: 10.1901/jeab.1991.55-145. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bickel WK, Johnson MW, Koffarnus MN, MacKillop J, Murphy JG. The behavioral economics of substance use disorders: Reinforcement pathologies and their repair. Annual Review of Clinical Psychology. 2014;10(10):641–677. doi: 10.1146/annurev-clinpsy-032813-153724. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bickel WK, Madden GJ, Petry NM. The price of change: The behavioral economics of drug dependence. Behavior Therapy. 1998;29(4):545–565. [Google Scholar]
- Bickel WK, Marsch LA, Carroll ME. Deconstructing relative reinforcing efficacy and situating the measures of pharmacological reinforcement with behavioral economics: A theoretical proposal. Psychopharmacology. 2000;153(1):44–56. doi: 10.1007/s002130000589. [DOI] [PubMed] [Google Scholar]
- Bickel WK, Odum AL, Madden GJ. Impulsivity and cigarette smoking: Delay discounting in current, never, and ex-smokers. Psychopharmacology. 1999;146(4):447–454. doi: 10.1007/pl00005490. [DOI] [PubMed] [Google Scholar]
- Bickel WK, Vuchinich RE. Reframing health behavior change with behavioral economics. Mahwah, NJ: Erlbaum; 2000. [Google Scholar]
- Bidwell LC, MacKillop J, Murphy JG, Tidey JW, Colby SM. Latent factor structure of a behavioral economic cigarette demand curve in adolescent smokers. Addictive Behaviors. 2012;37(11):1257–1263. doi: 10.1016/j.addbeh.2012.06.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bruner NR, Johnson MW. Demand curves for hypothetical cocaine in cocaine-dependent individuals. Psychopharmacology. 2014;231(5):889–897. doi: 10.1007/s00213-013-3312-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Epstein LH. Application of behavioral economic principles to treatment of childhood obesity. In: Allison DB, Pi-Sunyer FX, editors. Obesity treatment: Establishing goals, improving outcomes, and reviewing the research agenda. Boston, MA: Springer; 1995. pp. 113–119. [Google Scholar]
- Epstein LH, Dearing KK, Roba LG, Finkelstein E. The influence of taxes and subsidies on energy purchased in an experimental purchasing study. Psychological Science. 2010;21(3):406–414. doi: 10.1177/0956797610361446. [DOI] [PubMed] [Google Scholar]
- Epstein LH, Paluch RA, Carr KA, Temple JL, Bickel WK, MacKillop J. Reinforcing value and hypothetical behavioral economic demand for food and their relation to BMI. Eating Behaviors. 2018;29:120–127. doi: 10.1016/j.eatbeh.2018.03.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Epstein LH, Saelens BE. Behavioral economics of obesity: Food intake and energy expenditure. In: Bickel WK, Vuchinich RE, editors. Reframing health behavior change with behavioral economics. Mahwah, NJ: Lawrence Erlbaum Associates; 2000. pp. 293–311. [Google Scholar]
- Foxall GR, Olivera-Castro J, Schrezenmaier T, James V. The behavioral economics of brand choice. London and New York: Palgrave Macmillan; 2007. [Google Scholar]
- Foxall GR, Wells VK, Chang SW, Oliveira-Castro JM. Substitutability and independence: Matching analyses of brands and products. Journal of Organizational Behavior Management. 2010;30(2):145–160. [Google Scholar]
- Gilroy SP, Franck CT, Hantula DA. The discounting model selector: Statistical software for delay discounting applications. Journal of the Experimental Analysis of Behavior. 2017;107:388–401. doi: 10.1002/jeab.257. [DOI] [PubMed] [Google Scholar]
- Gilroy SP, Kaplan BA, Leader G. A systematic review of applied behavioral economics in assessments and treatments for individuals with developmental disabilities. Review Journal of Autism & Developmental Disorders. 2018;5(3):247–259. [Google Scholar]
- Gilroy, S. P., Kaplan, B. A., Reed, D. D., Koffarnus, M. N., & Hantula, D. A. (2018b). The Demand Curve Analyzer: Behavioral economic software for applied researchers. Journal of the Experimental Analysis of Behavior. 10.1002/jeab.479. [DOI] [PubMed]
- GitHub. (n.d.). beezdemand. [Computer software]. Retrieved from https://github.com/brentkaplan/beezdemand
- Grace RC, Kivell BM, Laugesen M. Estimating cross-price elasticity of e-cigarettes using a simulated demand procedure. Nicotine & Tobacco Research. 2014;17(5):592–598. doi: 10.1093/ntr/ntu268. [DOI] [PubMed] [Google Scholar]
- Greenwald MK. Effects of experimental Unemployment, Employment and Punishment analogs on opioid seeking and consumption in heroin-dependent volunteers. Drug & Alcohol Dependence. 2010;111(1–2):64–73. doi: 10.1016/j.drugalcdep.2010.03.020. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Greenwald MK, Hursh SR. Behavioral economic analysis of opioid consumption in heroin-dependent individuals: Effects of unit price and pre-session drug supply. Drug & Alcohol Dependence. 2006;85(1):35–48. doi: 10.1016/j.drugalcdep.2006.03.007. [DOI] [PubMed] [Google Scholar]
- Greenwald MK, Steinmiller CL. Behavioral economic analysis of opioid consumption in heroin-dependent individuals: Effects of alternative reinforcer magnitude and post-session drug supply. Drug & Alcohol Dependence. 2009;104(1–2):84–93. doi: 10.1016/j.drugalcdep.2009.04.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Grothendieck, G. (2013). nls2: Non-linear regression with brute force (Version 0.2). [Computer software].
- Henley AJ, DiGennaro Reed FD, Kaplan BA, Reed DD. Quantifying efficacy of workplace reinforcers: An application of behavioral economic demand to evaluate hypothetical work performance. Translational Issues in Psychological Science. 2016;2(2):174–183. [Google Scholar]
- Henley AJ, DiGennaro Reed FD, Reed DD, Kaplan BA. A crowdsourced nickel-and-dime approach to analog OBM research: A behavioral economic framework for understanding workforce attrition. Journal of the Experimental Analysis of Behavior. 2016;106(2):134–144. doi: 10.1002/jeab.220. [DOI] [PubMed] [Google Scholar]
- Herrnstein RJ. Relative and absolute strength of response as a function of frequency of reinforcement. Journal of the Experimental Analysis of Behavior. 1961;4:267–272. doi: 10.1901/jeab.1961.4-267. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hursh SR. The economics of daily consumption controlling food- and water-reinforced responding. Journal of the Experimental Analysis of Behavior. 1978;29(3):475–491. doi: 10.1901/jeab.1978.29-475. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hursh SR. Economic concepts for the analysis of behavior. Journal of the Experimental Analysis of Behavior. 1980;34(2):219–238. doi: 10.1901/jeab.1980.34-219. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hursh SR. Behavioral economics. Journal of the Experimental Analysis of Behavior. 1984;42(3):435–452. doi: 10.1901/jeab.1984.42-435. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hursh SR. Behavioral economics of drug self-administration and drug abuse policy. Journal of the Experimental Analysis of Behavior. 1991;56(2):377–393. doi: 10.1901/jeab.1991.56-377. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hursh SR. Behavioral economics and the analysis of consumption and choice. In: McSweeney FK, Murphy ES, editors. The Wiley Blackwell handbook of operant and classical conditioning. West Sussex, UK: Wiley; 2014. pp. 275–305. [Google Scholar]
- Hursh SR, Bauman RA. The behavioral analysis of demand. In: Green L, Kagel JH, editors. Advances in behavioral economics. Norwood, NJ: Ablex Publishing Company; 1987. pp. 117–165. [Google Scholar]
- Hursh SR, Raslear TG, Bauman R, Black H. The quantitative analysis of economic behavior with laboratory animals. In: Grunert KG, Ölander F, editors. Understanding economic behaviour. Dordrecht, The Netherlands: Springer Netherlands; 1989. pp. 393–407. [Google Scholar]
- Hursh SR, Raslear TG, Shurtleff D, Bauman R, Simmons L. A cost-benefit analysis of demand for food. Journal of the Experimental Analysis of Behavior. 1988;50(3):419–440. doi: 10.1901/jeab.1988.50-419. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hursh SR, Roma PG. Behavioral economics and empirical public policy. Journal of the Experimental Analysis of Behavior. 2013;99(1):98–124. doi: 10.1002/jeab.7. [DOI] [PubMed] [Google Scholar]
- Hursh, S. R., & Roma, P. G. (2014). Exponential model of demand in GraphPad Prism. [Software template]. Retrieved from: https://ibrinc.org/software/
- Hursh SR, Silberberg A. Economic demand and essential value. Psychological Review. 2008;115(1):186–198. doi: 10.1037/0033-295X.115.1.186. [DOI] [PubMed] [Google Scholar]
- Hursh SR, Winger G. Normalized demand for drugs and other reinforcers. Journal of the Experimental Analysis of Behavior. 1995;64(3):373–384. doi: 10.1901/jeab.1995.64-373. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jacobs EA, Bickel WK. Modeling drug consumption in the clinic using simulation procedures: Demand for heroin and cigarettes in opioid-dependent outpatients. Experimental & Clinical Psychopharmacology. 1999;7(4):412–426. doi: 10.1037//1064-1297.7.4.412. [DOI] [PubMed] [Google Scholar]
- Jarmolowicz DP, Reed DD, Reed FDD, Bickel WK. The behavioral and neuroeconomics of reinforcer pathologies: Implications for managerial and health decision making. Managerial & Decision Economics. 2016;37(4–5):274–293. [Google Scholar]
- Johnson PS, Johnson MW. Investigation of “bath salts” use patterns within an online sample of users in the United States. Journal of Psychoactive Drugs. 2014;46(5):369–378. doi: 10.1080/02791072.2014.962717. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kagel JH, Battalio RC, Green L. Economic choice theory: An experimental analysis of animal behavior. Cambridge, UK: Cambridge University Press; 1995. [Google Scholar]
- Kaplan, B. A. (2018). beezdemand: Behavioral Economic Easy Demand. R package version 0.1.0. [Computer software]. Retrieved from: https://CRAN.R-project.org/package=beezdemand [DOI] [PMC free article] [PubMed]
- Kaplan BA, Foster RNS, Reed DD, Amlung M, Murphy JG, MacKillop J. Understanding alcohol motivation using the alcohol purchase task: A methodological systematic review. Drug & Alcohol Dependence. 2018;191(1):117–140. doi: 10.1016/j.drugalcdep.2018.06.029. [DOI] [PubMed] [Google Scholar]
- Kaplan, B. A., & Reed, D. D. (2014). Essential value, Pmax, and Omax automated calculator [Spreadsheet application]. Retrieved from: https://kuscholarworks.ku.edu/handle/1808/14934
- Kaplan BA, Reed DD. Happy hour drink specials in the Alcohol Purchase Task. Experimental & Clinical Psychopharmacology. 2018;26(2):156–167. doi: 10.1037/pha0000174. [DOI] [PubMed] [Google Scholar]
- Katz JL. Models of relative reinforcing efficacy of drugs and their predictive utility. Behavioural Pharmacology. 1990;1:283–301. doi: 10.1097/00008877-199000140-00003. [DOI] [PubMed] [Google Scholar]
- Koffarnus MN, Franck CT, Stein JS, Bickel WK. A modified exponential behavioral economic demand model to better describe consumption data. Experimental & Clinical Psychopharmacology. 2015;23(6):504–512. doi: 10.1037/pha0000045. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Koffarnus MN, Wilson AG, Bickel WK. Effects of experimental income on demand for potentially real cigarettes. Nicotine & Tobacco Research. 2015;17(3):292–298. doi: 10.1093/ntr/ntu139. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lea SE. The psychology and economics of demand. Psychological Bulletin. 1978;85:441–466. [Google Scholar]
- Liao W, Luo X, Le CT, Chu H, Epstein LH, Yu J, Thomas JL. Analysis of cigarette purchase task instrument data with a left-censored mixed effects model. Experimental & Clinical Psychopharmacology. 2013;21(2):124–132. doi: 10.1037/a0031610. [DOI] [PMC free article] [PubMed] [Google Scholar]
- MacKillop J. The behavioral economics and neuroeconomics of alcohol use disorders. Alcoholism-Clinical & Experimental Research. 2016;40(4):672–685. doi: 10.1111/acer.13004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- MacKillop J, Brown CL, Stojek MK, Murphy CM, Sweet L, Niaura RS. Behavioral economic analysis of withdrawal- and cue-elicited craving for tobacco: An initial investigation. Nicotine & Tobacco Research. 2012;14(12):1426–1434. doi: 10.1093/ntr/nts006. [DOI] [PMC free article] [PubMed] [Google Scholar]
- MacKillop J, Few LR, Murphy JG, Wier LM, Acker J, Murphy C, Chaloupka F. High-resolution behavioral economic analysis of cigarette demand to inform tax policy. Addiction. 2012;107(12):2191–2200. doi: 10.1111/j.1360-0443.2012.03991.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mackillop J, Murphy CM, Martin RA, Stojek M, Tidey JW, Colby SM, Rohsenow DJ. Predictive validity of a cigarette purchase task in a randomized controlled trial of contingent vouchers for smoking in individuals with substance use disorders. Nicotine & Tobacco Research. 2016;18(5):531–537. doi: 10.1093/ntr/ntv233. [DOI] [PMC free article] [PubMed] [Google Scholar]
- MacKillop, J., & Murphy, J. G. (2007). A behavioral economic measure of demand for alcohol predicts brief intervention outcomes. Drug & Alcohol Dependence, 89(2–3), 227–233. doi:10.1016/j.drugalcdep.2007.01.002, 233 [DOI] [PubMed]
- MacKillop J, Murphy JG, Ray LA, Eisenberg DT, Lisman SA, Lum JK, Wilson DS. Further validation of a cigarette purchase task for assessing the relative reinforcing efficacy of nicotine in college smokers. Experimental & Clinical Psychopharmacology. 2008;16(1):57–65. doi: 10.1037/1064-1297.16.1.57. [DOI] [PubMed] [Google Scholar]
- MacKillop J, Murphy JG, Tidey JW, Kahler CW, Ray LA, Bickel WK. Latent structure of facets of alcohol reinforcement from a behavioral economic demand curve. Psychopharmacology. 2009;203(1):33–40. doi: 10.1007/s00213-008-1367-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- MacKillop J, Tidey JW. Cigarette demand and delayed reward discounting in nicotine-dependent individuals with schizophrenia and controls: An initial study. Psychopharmacology. 2011;216(1):91–99. doi: 10.1007/s00213-011-2185-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Madden GJ, Kalman D. Effects of bupropion on simulated demand for cigarettes and the subjective effects of smoking. Nicotine & Tobacco Research. 2010;12(4):416–422. doi: 10.1093/ntr/ntq018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Morris V, Amlung M, Kaplan BA, Reed DD, Petker T, MacKillop J. Using crowdsourcing to examine behavioral economic measures of alcohol value and proportionate alcohol reinforcement. Experimental & Clinical Psychopharmacology. 2017;25(4):314–321. doi: 10.1037/pha0000130. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Murphy JG, MacKillop J. Relative reinforcing efficacy of alcohol among college student drinkers. Experimental & Clinical Psychopharmacology. 2006;14(2):219–227. doi: 10.1037/1064-1297.14.2.219. [DOI] [PubMed] [Google Scholar]
- Murphy JG, Yurasek AM, Dennhardt AA, Skidmore JR, McDevitt-Murphy ME, MacKillop J, Martens MP. Symptoms of depression and PTSD are associated with elevated alcohol demand. Drug & Alcohol Dependence. 2013;127(1–3):129–136. doi: 10.1016/j.drugalcdep.2012.06.022. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nash, J. C. (2016). nlmrt: Functions for Nonlinear Least Squares Solutions (Version 2016.3.2). [computer software]. Retrieved from: https://CRAN.R-project.org/package=nlmrt
- O'Connor RJ, Bansal-Travers M, Carter LP, Cummings KM. What would menthol smokers do if menthol in cigarettes were banned? Behavioral intentions and simulated demand. Addiction. 2012;107(7):1330–1338. doi: 10.1111/j.1360-0443.2012.03822.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- O'Connor RJ, June KM, Bansal-Travers M, Rousu MC, Thrasher JF, Hyland A, Cummings KM. Estimating demand for alternatives to cigarettes with online purchase tasks. American Journal of Health Behavior. 2014;38(1):103–113. doi: 10.5993/AJHB.38.1.11. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Open Science Collaboration An open, large-scale, collaborative effort to estimate the reproducibility of psychological science. Perspectives on Psychological Science. 2012;7(6):657–660. doi: 10.1177/1745691612462588. [DOI] [PubMed] [Google Scholar]
- Qualtrics® Research Suite. (n.d.) [Web service]. https://www.qualtrics.com
- Quisenberry AJ, Koffarnus MN, Hatz LE, Epstein LH, Bickel WK. The experimental tobacco marketplace I: Substitutability as a function of the price of conventional cigarettes. Nicotine & Tobacco Research. 2015;18(7):1642–1648. doi: 10.1093/ntr/ntv230. [DOI] [PMC free article] [PubMed] [Google Scholar]
- R Core Team. (2018). R: A language and environment for statistical computing (Version 3.5.1). [Computer software]. R Foundation for Statistical Computing.
- Reed, D. D. (2015). GraphPad Prism 7.0a template for exponentiated demand analyses. [Software template]. Retrieved from: http://www.behavioraleconlab.com/resources%2D%2D-tools.html
- Reed DD, Kaplan BA, Becirevic A, Roma PG, Hursh SR. Toward quantifying the abuse liability of ultraviolet tanning: A behavioral economic approach to tanning addiction. Journal of the Experimental Analysis of Behavior. 2016;106(1):93–106. doi: 10.1002/jeab.216. [DOI] [PubMed] [Google Scholar]
- Reed DD, Niileksela CR, Kaplan BA. Behavioral economics: a tutorial for behavior analysts in practice. Behavior Analysis in Practice. 2013;6(1):34–54. doi: 10.1007/BF03391790. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Roma PG, Hursh SR, Hudja S. Hypothetical purchase task questionnaires for behavioral economic assessments of value and motivation. Managerial & Decision Economics. 2016;37(4–5):306–323. [Google Scholar]
- Samuelson PA, Nordhaus WD. Economics New York and London: McGraw-Hill. 2009. [Google Scholar]
- Snider SE, Cummings KM, Bickel WK. Behavioral economic substitution between conventional cigarettes and e-cigarettes differs as a function of the frequency of e-cigarette use. Drug & Alcohol Dependence. 2017;177:14–22. doi: 10.1016/j.drugalcdep.2017.03.017. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Spiga, R., Martinetti, M. P., Meisch, R. A., Cowan, K., & Hursh, S. (2005). Methadone and nicotine self-administration in humans: a behavioral economic analysis. Psychopharmacology, 178(2–3), 223–231. doi:10.1007/s00213-004-2020-6, 223 [DOI] [PubMed]
- StackOverflow. (n.d.). [Computer software]. Retrieved from https://stackoverflow.com
- Stein JS, Koffarnus MN, Snider SE, Quisenberry AJ, Bickel WK. Identification and management of nonsystematic purchase task data: Toward best practice. Experimental & Clinical Psychopharmacology. 2015;23(5):377–386. doi: 10.1037/pha0000020. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Strickland JC, Lile JA, Rush CR, Stoops WW. Comparing exponential and exponentiated models of drug demand in cocaine users. Experimental & Clinical Psychopharmacology. 2016;24(6):447–455. doi: 10.1037/pha0000096. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Strickland JC, Stoops WW. Feasibility, acceptability, and validity of crowdsourcing for collecting longitudinal alcohol use data. Journal of the Experimental Analysis of Behavior. 2018;110(1):136–153. doi: 10.1002/jeab.445. [DOI] [PubMed] [Google Scholar]
- Swirl. (n.d.). Swirl: Learn R in R. [Computer software]. https://swirlstats.com
- Tabachnick BG, Fidell LS. Using multivariate statistics. 6. Boston, MA: Pearson; 2013. [Google Scholar]
- Tippmann S. Programming tools: Adventures with R. Nature. 2015;517(7532):109–110. doi: 10.1038/517109a. [DOI] [PubMed] [Google Scholar]
- Use R! Series (n.d.) Use R! series. (R. Gentleman, K. Hornik, & G. Parmigiani, eds.). Boston, MA: Springer.
- Vincent PC, Collins RL, Liu L, Yu J, De Leo JA, Earleywine M. The effects of perceived quality on behavioral economic demand for marijuana: A web-based experiment. Drug & Alcohol Dependence. 2017;170:174–180. doi: 10.1016/j.drugalcdep.2016.11.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wilson AG, Franck CT, Koffarnus MN, Bickel WK. Behavioral economics of cigarette purchase tasks: Within-subject comparison of real, potentially real, and hypothetical cigarettes. Nicotine & Tobacco Research. 2016;18(5):524–530. doi: 10.1093/ntr/ntv154. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wine B, Gilroy S, Hantula DA. Temporal (in)stability of employee preferences for rewards. Journal of Organizational Behavior Management. 2012;32(1):58–64. [Google Scholar]
- Xie Y. Dynamic documents with R and knitr. Boca Raton, Florida: Chapman; Hall/CRC; 2016. [Google Scholar]
- Yu J, Liu L, Collins RL, Vincent PC, Epstein LH. Analytical problems and suggestions in the analysis of behavioral economic demand curves. Multivariate Behavioral Research. 2014;49(2):178–192. doi: 10.1080/00273171.2013.862491. [DOI] [PubMed] [Google Scholar]
- Zhao T, Luo X, Chu H, Le CT, Epstein LH, Thomas JL. A two-part mixed effects model for cigarette purchase task data. Journal of the Experimental Analysis of Behavior. 2016;106(3):242–253. doi: 10.1002/jeab.228. [DOI] [PMC free article] [PubMed] [Google Scholar]