sim_negbin_statistic: Simulate a single negative binomial score scan statistic.

Description Usage Arguments Value

Description

Simulate negative binomial-distributed data according to the supplied parameters and calculate the value of the score scan statistic, according to the specified model.

Usage

1
sim_negbin_statistic(table, zones, wstat_fun)

Arguments

table

A data.table with at least the columns mu and theta. The parameter θ (theta) is the same as size in rnbinom.

zones

A set of zones, each zone itself being a set containing locations. Locations should be encoded as integers.

wstat_fun

The function that calculates the statistic for each window.

Value

A scalar; the scan statistic for the simulated data.



Search within the scanstatistics package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.