spscan.sim: Compute spatial scan statistics for simulated data

View source: R/spscan.test.R

spscan.simR Documentation

Compute spatial scan statistics for simulated data

Description

Compute spatial scan statistics for simulated data

Usage

spscan.sim(nsim, nnlist, N, N1, Nin, Nout, const, cl)

Arguments

nsim

The number of simulations from which to compute the p-value. A non-negative integer. Default is 499.

nnlist

A list of nearest neighbors from the nn function.

N

Number of event locations

N1

Number of case events

Nin

Number of event locations in each window

Nout

Number of event locations outside each window

const

Constant for computing test statistic

cl

A cluster object created by makeCluster, or an integer to indicate number of child-processes (integer values are ignored on Windows) for parallel evaluations (see Details on performance). It can also be "future" to use a future backend (see Details), NULL (default) refers to sequential evaluation.

Value

A vector of maximum test statistics


jpfrench81/smacpod documentation built on Oct. 2, 2023, 2:57 p.m.