Package: beezdiscounting 0.3.2

beezdiscounting: Behavioral Economic Easy Discounting

Facilitates some of the analyses performed in studies of behavioral economic discounting. The package supports scoring of the 27-Item Monetary Choice Questionnaire (see Kaplan et al., 2016; <doi:10.1007/s40614-016-0070-9>), calculating k values (Mazur's simple hyperbolic and exponential) using nonlinear regression, calculating various Area Under the Curve (AUC) measures, plotting regression curves for both fit-to-group and two-stage approaches, checking for unsystematic discounting (Johnson & Bickel, 2008; <doi:10.1037/1064-1297.16.3.264>) and scoring of the minute discounting task (see Koffarnus & Bickel, 2014; <doi:10.1037/a0035973>) using the Qualtrics 5-trial discounting template (see the Qualtrics Minute Discounting User Guide; <doi:10.13140/RG.2.2.26495.79527>), which is also available as a .qsf file in this package.

Authors:Brent A. Kaplan [aut, cre, cph]

beezdiscounting_0.3.2.tar.gz
beezdiscounting_0.3.2.zip(r-4.5)beezdiscounting_0.3.2.zip(r-4.4)beezdiscounting_0.3.2.zip(r-4.3)
beezdiscounting_0.3.2.tgz(r-4.5-any)beezdiscounting_0.3.2.tgz(r-4.4-any)beezdiscounting_0.3.2.tgz(r-4.3-any)
beezdiscounting_0.3.2.tar.gz(r-4.5-noble)beezdiscounting_0.3.2.tar.gz(r-4.4-noble)
beezdiscounting_0.3.2.tgz(r-4.4-emscripten)beezdiscounting_0.3.2.tgz(r-4.3-emscripten)
beezdiscounting.pdf |beezdiscounting.html
beezdiscounting/json (API)
NEWS

# Install 'beezdiscounting' in R:
install.packages('beezdiscounting', repos = c('https://brentkaplan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/brentkaplan/beezdiscounting/issues

Datasets:
  • dd_ip - Delay Discounting Data
  • five.fivetrial_dd - Example Qualtrics output from the 5.5 trial delay discounting template.
  • five.fivetrial_pd - Example Qualtrics output from the 5.5 trial probability discounting template.
  • mcq27 - Example 27-item MCQ data

On CRAN:

5-trial-discountingdelay-discountingmonetary-choice-questionnaire

3.78 score 2 stars 4 scripts 329 downloads 25 exports 56 dependencies

Last updated 1 months agofrom:5ec65280d2. Checks:5 OK, 3 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 08 2025
R-4.5-winNOTEFeb 08 2025
R-4.5-macNOTEFeb 08 2025
R-4.5-linuxNOTEFeb 08 2025
R-4.4-winOKFeb 08 2025
R-4.4-macOKFeb 08 2025
R-4.3-winOKFeb 08 2025
R-4.3-macOKFeb 08 2025

Exports:%>%ans_ddans_pdcalc_aucscalc_conf_intcalc_ddcalc_pdcalc_r2check_unsystematicfit_ddgenerate_data_mcqget_lookup_tablelong_to_wide_mcqlong_to_wide_mcq_excelplot_ddprop_ssresults_ddscore_ddscore_mcq27score_pdsummarize_mcqtiming_ddtiming_pdwide_to_long_mcqwide_to_long_mcq_excel

Dependencies:backportsbeezdemandbroomclicolorspacecpp11digestdplyrfansifarvergenericsggplot2glueGPArotationgtablegtoolsisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvminpack.lmmnormtmunsellnlmenloptrnls2nlsrnlstoolsnumDerivoptimxpillarpkgconfigplyrpracmaprotopsychpurrrR6RColorBrewerRcppreshape2rlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Converts answers from 5.5 trial delay discounting from Qualtrics templateans_dd
Converts answers from 5.5 trial probability discounting from Qualtrics templateans_pd
Calculate Area-Under-the-Curve (AUC) Metrics for Delay Discounting Datacalc_aucs
Calculate Confidence Intervals for a Parametercalc_conf_int
Calculate scores, answers, and timing for 5.5 trial delay discounting from Qualtrics templatecalc_dd
Calculate scores, answers, and timing for 5.5 trial probability discounting from Qualtrics templatecalc_pd
Calculate R-Squared for a Modelcalc_r2
Check for Unsystematic Data Violationscheck_unsystematic
Delay Discounting Datadd_ip
Fit Delay-Discounting Modelfit_dd
Example Qualtrics output from the 5.5 trial delay discounting template.five.fivetrial_dd
Example Qualtrics output from the 5.5 trial probability discounting template.five.fivetrial_pd
Generate fake MCQ datagenerate_data_mcq
Get internal lookup table for the 27-item MCQget_lookup_table
Calculates item nearest neighbor imputation approach discussed by Yeh et al. (2023)inn
Reshape MCQ data long to widelong_to_wide_mcq
Reshape MCQ data from long to wide (as used in the 21- and 27-Item Monetary Choice Questionnaire Automated Scorer)long_to_wide_mcq_excel
Example 27-item MCQ datamcq27
Plot Delay-Discounting Modelplot_dd
Plot Proportion of SIR/SS Choices by k Valueplot.prop_ss_output
Plot MCQ-27 Scoresplot.score_mcq27_output
Calculate proportion of SIR/SS responses at each k valueprop_ss
Extract Results from Delay-Discounting Modelresults_dd
Score 5.5 trial delay discounting from Qualtrics templatescore_dd
Score 27-item MCQscore_mcq27
Score one subject's 27-item MCQscore_one_mcq27
Score 5.5 trial probability discounting from Qualtrics templatescore_pd
Provide a summary of the results from the MCQ ouutput table.summarize_mcq
Extract timing metrics from 5.5 trial delay discounting from Qualtrics templatetiming_dd
Extract timing metrics from 5.5 trial probability discounting from Qualtrics templatetiming_pd
Reshape MCQ data wide to longwide_to_long_mcq
Reshape MCQ data from wide (as used in the 21- and 27-Item Monetary Choice Questionnaire Automated Scorer) to longwide_to_long_mcq_excel