create_spscan: Create spscan object

View source: R/spscan.test.R

create_spscanR Documentation

Create spscan object

Description

Create spscan object

Usage

create_spscan(
  tobs,
  pvalue,
  alpha,
  noc_info,
  coords,
  z,
  N,
  N1,
  x,
  d,
  maxd,
  longlat,
  nsim
)

Arguments

tobs

The vector of observed test statistics in descending order for non-overlapping windows.

pvalue

The pvalues associated with tobs.

alpha

The significance level to determine whether a cluster is signficant. Default is 0.1.

noc_info

An object from the noc_nn function.

z

An indicator vector indicating which observations are cases.

N

Number of event locations

N1

Number of case events

x

A ppp object with marks for the case and control groups.

d

A matrix of intercentroid distances for the event locations.

maxd

The radius of the largest possible cluster to consider. Default is NULL, i.e., half the maximum intercentroid distance.

longlat

A logical value indicating whether Euclidean distance (FALSE) or Great Circle (WGS84 ellipsoid, FALSE) should be used. Default is FALSE, i.e., Euclidean distance.

nsim

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

Value

An spscan object.


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