Learn R Programming

YEAB (version 1.0.6)

eq_hyp: Hyperbolic function

Description

An hyperbolic function to simulate delay discounting data

Usage

eq_hyp(k, delay)

Value

A numeric vector of subjective values between 0 and 1

Arguments

k

numeric constant, the delay discounting parameter

delay

vector of delays

Examples

Run this code
delay <- seq(0, 10, len = 100)
k <- 0.2
sv <- eq_hyp(k, delay)
plot(delay, sv,
  xlab = "delay",
  ylab = "Sv",
  type = "l"
)

Run the code above in your browser using DataLab