knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of discAUC is to provide a solution to easily calculate AUC for delay discounting data. It includes logAUC and ordAUC as published in Borges et al. (2016). It also includes a solution for 0 delays for logAUC.
You can install the released version of discAUC from CRAN with:
install.packages("discAUC")
This is a basic example which shows you how to solve a common problem:
library(discAUC) #Calculate AUC for proportional indiference points for each outcome per subject. AUC(dat = examp_DD, x_axis = "delay_months", indiff = "prop_indiff", amount = 1, groupings = c("subject","outcome"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.