prep.scan prepares the results of a scan-related
test and turns them into a scan object.
prep.scan(tobs, zones, pvalue, coords, cases, pop, ex, longlat, w = NULL,
d = NULL, a = NULL, shape_all = NULL, angle_all = NULL)The observed test statistics for each zone
A list of zones
The p-value associated with each test statistic
An \(n \times 2\) matrix of centroid coordinates for the regions.
The number of cases observed in each region.
The population size associated with each region.
The expected number of cases for each region. The default is calculated under the constant risk hypothesis.
The default is FALSE, which
specifies that Euclidean distance should be used.If
longlat is TRUE, then the great circle
distance is used to calculate the intercentroid
distance.
A binary spatial adjacency matrix for the regions.
A precomputed distance matrix based on coords
A scan object