Calculate the expectation-based Poisson scan statistic and Monte Carlo replicates.
scan_eb_poisson_cpp(
counts,
baselines,
zones,
zone_lengths,
store_everything,
num_mcsim
)
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 inside.
The estimated relative risk outside.
An integer matrix (most recent timepoint in first row).
A matrix with positive entries (most recent timepoint in first row).
An integer vector (all zones concatenated; locations indexed from 0 and up).
An integer vector.
A boolean.
An integer.