In a Poisson point process, subjects arrive with exponentially distributed inter-arrival times with rate ψ. This function can be used to estimate the parameter ψ.
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.