Description Usage Details DOR functions Depletion functions Inital reserve functions Reinforcement schedule functions Behaviour emission functions Reinforcement delivery functions See Also
A list of the functions in the CAB
package's implementation of Catania's Operant Reserve. See CAB.COR for more details.
1 2 3 4 5 6 7 8 9 10 11 | COR.linear_DOR(DOR_max, DOR_scale, IRI_resp_times, reserve_value)
COR.constant_depletion(depletion_constant, reserve_value)
COR.initial_reserve(initial_reserve_constant)
COR.exponential_vi(inter_rft_interval, time)
COR.G_E_emission(reserve_value, time, min_irt)
COR.rft_duration(time, food_duration)
|
Stuff
A delay-of-reinforcement gradient. Replenishes the reserve.
COR.linear_DOR
A linear DOR.
COR.linear_DOR( DOR_max, DOR_scale, IRI_resp_times, reserve_value )
DOR_max
A numeric giving the maximum value of the DOR.
DOR_scale
A numeric that is proportional to the slope of the DOR.
IRI_resp_times
A numeric vector of response times in the most recent inter-reinforcement interval
reserve_value
A numeric giving the reserve value.
The reserve value is defined on [0,1] for our COR implementaiton. Therefore, COR.linear_DOR
will never return a value larger than 1.
Returns the new value of the reserve after applying the DOR.
A reserve depletion function. Depletes the reserve.
COR.constant_depletion
A constant depletion function.
COR.constant_depletion( depletion_constant, reserve_value )
depletion_constant
A numeric giving the depletion of the DOR.
reserve_value
A numeric giving the reserve value.
The reserve value is defined on [0,1] for our COR implementaiton. Therefore, COR.constant_depletion
will never return a value smaller than 0.
Returns the new value of the reserve after applying the depletion function.
Specify the initial reserve value.
COR.initial_reserve_constant
A constant initial reserve value.
COR.initial_reserve( initial_reserve_constant )
initial_reserve_constant
A numeric giving the initial reserve value.
The reserve value is defined on [0,1] for our COR implementaiton. Therefore, COR.initial_reserve_constant
should be in [0,1].
Returns the initial reserve value.
Control the delivery of reinforcement
COR.exponential_vi
A variable-interval schedule where the inter-reinforcement intervals are arranged by sampling from an Exponential(1/rate) distribution.
COR.exponential_vi( inter_rft_interval, time )
inter_rft_interval
A numeric giving the average inter-reinforcement interval.
time
A numeric giving the time.
Samples a new inter-reinforcement interval and adds that to the current time
. Therefore, returns the time when the next reinforcement will be primed.
COR.shifted_exponential_vi
A variable-interval schedule where the inter-reinforcement intervals are arranged by sampling from a shifted Exponential(1/rate) distribution.
COR.exponential_vi( inter_rft_interval, time )
inter_rft_interval
A numeric giving the average inter-reinforcement interval.
time
A numeric giving the time.
shift
Numeric. Shift time.
Samples a new inter-reinforcement interval and adds that to the current time
. Therefore, returns the time when the next reinforcement will be primed.
Emit responses from the reserve.
COR.G_E_emission
A function that emits responding based on the transformation from a Geometric distribution to an Exponential distribution.
COR.G_E_emission( reserve_value, time, min_irt )
reserve_value
A numeric giving the reserve value.
time
A numeric giving the time.
min_irt
A numeric that is the minimum inter-response time.
Under standard implementations of COR ( see CAB.COR ), the reserve gives the probability of responding at a given time point. Therefore, the distribution of how many time intervals to wait until the next response is a Geometric(p) distribution. We transform the Geometric distribution to an Exponential distribution so that responses can be emitted in continuous time. The distribution of each inter-response time is
t ~ Exponential( rate = -log(1-reserve) ) + min_IRT
where t is the emitted inter-response time.
Returns the time at which the next response will occur.
Deliver reinforcement.
COR.rft_duration
A function that accounts for the time associated with a reinforcement delivery.
COR.rft_duration( time, food_duration )
time
A numeric giving the time.
food_duration
A numeric that is the minimum inter-response time.
Returns the time after the reinforcement delivery
CAB.COR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.