Learn R Programming

pdmod (version 1.0.1)

calculateResponse: Calculate response from the estimate

Description

Given an estiamtes probability of reward beween 0 and 1, calculates a response rate (i.e. the measured response of the animal such as visits to the food delivery system)

Usage

calculateResponse(k, rmax, est)

Arguments

k

Response rate parameter

rmax

Maximum response

est

Vector of estimates

Value

Vector of responses

See Also

Constants, isTimedVector, verifyTimedVector

Examples

Run this code
# NOT RUN {
calculateResponse(0.8, 10, runif(20))
# }

Run the code above in your browser using DataLab