smerc_cluster
smerc_cluster
prepares a smerc_cluster
.
smerc_cluster(
tobs,
zones,
pvalue,
coords,
cases,
pop,
ex,
longlat,
method,
rel_param,
alpha,
w = NULL,
d = NULL,
a = NULL,
shape_all = NULL,
angle_all = NULL,
weights = NULL
)
A smerc_cluster
object. The object
generally has the following components:
A list containing information about the significant clusters. See further details below.
The matrix of centroid coordinates.
The number of regions considered.
The total population in the regions.
The total number of cases in the regions.
The rate of cases per 100,000 persons.
The name of the method applied.
A list of relevant method parameters.
The significance level.
A logical value indicating which type of distance was used.
Each element of the clusters
component has:
The ids of the regions in the cluster.
The cluster centroid.
The radius of the region (from the starting region to last region of the cluster).
The maximum intercentroid distance between all the regions in the cluster.
The total population in the cluster.
The number of cases in the cluster.
The expected number of cases in the cluster.
Standardized mortality ratio
(cases/expected
) in the cluster.
Relative risk in the cluster window. This is
(cases/pop)/((total_cases - cases)/
(total_population - population))
.
The log of the likelihood ratio test statistic for the cluster. Only valid for the scan-type tests.
The test statistic for the cluster.
The p-value of the test statistic associated with the cluster.
The adjacency information for the cluster.
For elliptic.test
, clusters
additionally has:
The semi-minor axis length for the ellipse.
The semi-major axis length for the ellipse.
The rotation angle of the ellipse.
The shape of the ellipse.
The vector of 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 in the form (x, y) or (longitude, latitude) is using great circle distance.
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 character string indicating the method
used to construct the smerc_cluster
.
A names list with the relevant parameters
associated with method
.
The significance level of the test.
A binary spatial adjacency matrix for the regions.
A precomputed distance matrix based on coords
A single value >= 0 indicating the penalty to use
for elliptic.test
.
A vector of shape parameters associated
with zones
.
A vector of angle parameter associated with
zones
.
A vector of weights that multiply the cases
, ex
, and
pop
prior to computing summary statistics.