scan_eb_negbin_cpp: Calculate the expectation-based negative binomial scan...

Description Usage Arguments Value

Description

Calculate the expectation-based negative binomial scan statistic and Monte Carlo replicates.

Usage

1
2
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.


BenjaK/scanstatistics documentation built on May 5, 2019, 2:41 p.m.