arrival_rate: Estimate arrival rate of a Poisson points process

View source: R/arrival_rate.R

arrival_rateR Documentation

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)

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.

Value

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

Author(s)

Daniel Gomon

Examples

arrival_rate(surgerydat)



success documentation built on June 22, 2024, 10:19 a.m.