scan_pb_poisson_cpp: Calculate the population-based Poisson scan statistic.

Description Usage Arguments Value

Description

Calculate the population-based Poisson scan statistic and Monte Carlo replicates.

Usage

1
2
scan_pb_poisson_cpp(counts, baselines, zones, zone_lengths,
  store_everything, num_mcsim)

Arguments

counts

integer matrix (most recent timepoint in first row)

baselines

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

int

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_in

The estimated relative risk inside.

relrisk_in

The estimated relative risk outside.


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