Calculates the terminal reinforcement rate given initial link (IL) durations, terminal link (TL) duration, terminal reinforcement probability, and schedule types. Optionally computes a common effective IL duration when both schedules are variable interval (VI).
Arguments
- il_dur1
Duration of the first alternative's IL.
- il_dur2
Duration of the second alternative's IL.
- tl_dur1
Duration of the first alternative's TL.
- tr_p
Probability of terminal reinforcement.
- il_sched1
Schedule type for the initial links. (e.g.,
"VI"
or"FR"
). Seechoice_params()
for additional details about inputting schedule types.- il_sched2
Schedule type for the second alternative's initial link.
- common_il_dur
Logical; if
TRUE
, a common initial link (IL) duration is computed, but only when both IL schedules are"VI"
. IfFALSE
, the reinforcement rate is computed using only the first alternative's IL duration, regardless of schedule type.
Details
When using vectorised inputs, arguments of differing lengths will be
recycled according to R's standard vector recycling rules. If lengths are
not compatible (i.e., not clean multiples), a warning may be issued.
See base::Arithmetic()
for details.