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>) 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 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.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'))

Peer review:

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

Datasets:
  • 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

18 exports 1 stars 1.26 score 40 dependencies 4 scripts 236 downloads

Last updated 1 months agofrom:d967a64219. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 07 2024
R-4.5-winOKSep 07 2024
R-4.5-linuxOKSep 07 2024
R-4.4-winOKSep 07 2024
R-4.4-macOKSep 07 2024
R-4.3-winOKSep 07 2024
R-4.3-macOKSep 07 2024

Exports:%>%ans_ddans_pdcalc_ddcalc_pdgenerate_data_mcqget_lookup_tablelong_to_wide_mcqlong_to_wide_mcq_excelprop_ssscore_ddscore_mcq27score_pdsummarize_mcqtiming_ddtiming_pdwide_to_long_mcqwide_to_long_mcq_excel

Dependencies:clicolorspacecpp11dplyrfansifarvergenericsggplot2glueGPArotationgtablegtoolsisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmnormtmunsellnlmepillarpkgconfigpsychpurrrR6RColorBrewerrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

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 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
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 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
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