Calculate the expectation-based ZIP loglihood ratio statistic for each zone and duration, but only keep the zone and duration with the highest value (the MLC). The estimate of the relative risk is also calculated, along with the number of iterations the EM algorithm performed.
scan_eb_zip_cpp(counts, baselines, probs, zones, zone_lengths, rel_tol,
store_everything, num_mcsim)
matrix (most recent timepoint in first row)
matrix (most recent timepoint in first row)
matrix (most recent timepoint in first row)
integer vector (all zones concatenated; locations indexed from 0 and up)
integer vector
double
boolean
int
A list with elements observed
and simulated
, each
being a data frame with columns:
The top-scoring zone (spatial component of MLC).
The corresponding duration (time-length of MLC).
The value of the loglihood ratio statistic (the scan statistic).
The estimated relative risk.
The number of iterations performed by the EM algorithm.