add_llr: Calculate the log-likelihood ratios from given...
data.table containing the log-likelihoods for all event types,
and for the null hypothesis of no event, calculates the log-likelihood ratios
by subtracting null log-likelihoods from the event log-likelihoods,
for each location, stream, and event duration.
data.table containing at least the columns
event, location, stream, duration and
first four columns must be key columns, in that order. The column
event contains all event types (given e.g. as integers or strings)
and also the null hypothesis, as specified by the argument
The identifier for the null hypothesis in the column
event of the input argument
if event types are specified as integers, or
"null" if event types
are specified as strings.
data.table with key columns
location, event, stream,
duration, and a column
llr containing the log-likelihood ratios for
each event type.