Learn R Programming

success (version 1.0.1)

arrival_rate: Estimate arrival rate of a Poisson points process

Description

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\).

Usage

arrival_rate(data)

Value

A (named) vector containing the estimated arrival rate in the data, or for each unit in the 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.

Author

Daniel Gomon

Examples

Run this code
arrival_rate(surgerydat)


Run the code above in your browser using DataLab