eq_hyp {YEAB} | R Documentation |
Hyperbolic function
Description
An hyperbolic function to simulate delay discounting data
Usage
eq_hyp(k, delay)
Arguments
k |
numeric constant, the delay discounting parameter |
delay |
vector of delays |
Value
A numeric vector of subjective values between 0 and 1
Examples
delay <- seq(0, 10, len = 100)
k <- 0.2
sv <- eq_hyp(k, delay)
plot(delay, sv,
xlab = "delay",
ylab = "Sv",
type = "l"
)
[Package YEAB version 1.0.6 Index]