GenEst (version 1.2.0)

calcTsplit: Estimate the number of fatalities by time interval

Description

calcTsplit() is a lower-level function that requires the output of calcRate as input. See calcSplits for a more powerful, convenient, and flexible alternative.

Usage

calcTsplit(rate, days, tsplit)

Arguments

rate

Array (nsim x nsearch) of arrival rates as number of fatalities per search interval. Typically, rate will be the return value of the calcRate function.

days

A vector of times representing search dates when at least one unit was searched. Times are formatted as number of days since the first search, e.g., c(0, 7, 14, 28, 35) would indicate a schedule in at least one unit was searched every 7 days.

tsplit

A vector of times that splits the monitoring period into a set of time intervals for which calcTsplit will estimate the number of fatalities. For example, if tsplit = c(0, 14, 19, 35), then calcTsplit estimates the number of fatalities occuring in interval (0, 14], (14, 19], and (19, 35]. Times in tsplit must be increasing and between 0 and max(days), inclusive.

Value

A numeric array with dimensions dim = c(length(tsplit) - 1, nsim) giving the estimated number of fatalities that occured in each time interval.