COR_helpers: Catania's Operant Reserve functions

Description Usage Details DOR functions Depletion functions Inital reserve functions Reinforcement schedule functions Behaviour emission functions Reinforcement delivery functions See Also

Description

A list of the functions in the CAB package's implementation of Catania's Operant Reserve. See CAB.COR for more details.

Usage

 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)

Details

Stuff

DOR functions

A delay-of-reinforcement gradient. Replenishes the reserve.

COR.linear_DOR

A linear DOR.

Usage

COR.linear_DOR( DOR_max, DOR_scale, IRI_resp_times, reserve_value )

Arguments

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.

Details

The reserve value is defined on [0,1] for our COR implementaiton. Therefore, COR.linear_DOR will never return a value larger than 1.

Value

Returns the new value of the reserve after applying the DOR.

Depletion functions

A reserve depletion function. Depletes the reserve.

COR.constant_depletion

A constant depletion function.

Usage

COR.constant_depletion( depletion_constant, reserve_value )

Arguments

depletion_constant

A numeric giving the depletion of the DOR.

reserve_value

A numeric giving the reserve value.

Details

The reserve value is defined on [0,1] for our COR implementaiton. Therefore, COR.constant_depletion will never return a value smaller than 0.

Value

Returns the new value of the reserve after applying the depletion function.

Inital reserve functions

Specify the initial reserve value.

COR.initial_reserve_constant

A constant initial reserve value.

Usage

COR.initial_reserve( initial_reserve_constant )

Arguments

initial_reserve_constant

A numeric giving the initial reserve value.

Details

The reserve value is defined on [0,1] for our COR implementaiton. Therefore, COR.initial_reserve_constant should be in [0,1].

Value

Returns the initial reserve value.

Reinforcement schedule functions

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.

Usage

COR.exponential_vi( inter_rft_interval, time )

Arguments

inter_rft_interval

A numeric giving the average inter-reinforcement interval.

time

A numeric giving the time.

Value

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.

Usage

COR.exponential_vi( inter_rft_interval, time )

Arguments

inter_rft_interval

A numeric giving the average inter-reinforcement interval.

time

A numeric giving the time.

shift

Numeric. Shift time.

Value

Samples a new inter-reinforcement interval and adds that to the current time. Therefore, returns the time when the next reinforcement will be primed.

Behaviour emission functions

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.

Usage

COR.G_E_emission( reserve_value, time, min_irt )

Arguments

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.

Details

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.

Value

Returns the time at which the next response will occur.

Reinforcement delivery functions

Deliver reinforcement.

COR.rft_duration

A function that accounts for the time associated with a reinforcement delivery.

Usage

COR.rft_duration( time, food_duration )

Arguments

time

A numeric giving the time.

food_duration

A numeric that is the minimum inter-response time.

Value

Returns the time after the reinforcement delivery

See Also

CAB.COR


Don-Li/CAB documentation built on May 6, 2019, 2:52 p.m.