scan_eb_negbin_cpp {scanstatistics} | R Documentation |
Calculate the expectation-based negative binomial scan statistic.
Description
Calculate the expectation-based negative binomial scan statistic and Monte Carlo replicates.
Usage
scan_eb_negbin_cpp(
counts,
baselines,
overdisp,
zones,
zone_lengths,
store_everything,
num_mcsim,
score_hotspot
)
Arguments
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 |
Value
A list with elements observed
and simulated
, each
being a data frame with columns:
- zone
The top-scoring zone (spatial component of MLC).
- duration
The corresponding duration (time-length of MLC).
- score
The value of the loglihood ratio statistic (the scan statistic).
- relrisk
The estimated relative risk.
- n_iter
The number of iterations performed by the EM algorithm.
[Package scanstatistics version 1.1.1 Index]