Calculate the expectation-based negative binomial scan statistic and Monte Carlo replicates.
scan_eb_negbin_cpp(counts, baselines, overdisp, zones, zone_lengths,
store_everything, num_mcsim, score_hotspot)
Integer 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
Boolean
Integer
Boolean
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.