arrival_rate function

Estimate arrival rate of a Poisson points process

Estimate arrival rate of a Poisson points process

In a Poisson point process, subjects arrive with exponentially distributed inter-arrival times with rate ψ\psi. This function can be used to estimate the parameter ψ\psi.

arrival_rate(data)

Arguments

  • data: A data.frame containing the following named column for each subject:

    • entrytime:: time of entry into study (numeric);

    If the data.frame also contains a column named unit, the arrival rate will be determined for each unit separately.

Returns

A (named) vector containing the estimated arrival rate in the data, or for each unit in the data.

Examples

arrival_rate(surgerydat)

Author(s)

Daniel Gomon