Description Usage Arguments Value
Calculate the expectation-based negative binomial scan statistic and Monte Carlo replicates.
1 2 | scan_eb_negbin_cpp(counts, baselines, overdisp, zones, zone_lengths,
store_everything, num_mcsim, score_hotspot)
|
counts |
Integer matrix (most recent timepoint in first row) |
baselines |
Matrix (most recent timepoint in first row) |
overdisp |
Matrix (most recent timepoint in first row) |
zones |
Integer vector (all zones concatenated; locations indexed from 0 and up) |
zone_lengths |
Integer vector |
store_everything |
Boolean |
num_mcsim |
Integer |
score_hotspot |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.