View source: R/smerc_cluster-summary.R
summary.smerc_cluster | R Documentation |
smerc_cluster
objectSummary of object of class smerc_cluster
.
## S3 method for class 'smerc_cluster'
summary(object, ..., idx = seq_along(object$clusters), digits = 1)
object |
An object of class |
... |
Additional arguments affecting the summary produced. |
idx |
An index vector indicating the elements of
|
digits |
Integer indicating the number of decimal places. |
A data.frame
with columns:
nregions |
The number of regions in the cluster. |
max_dist |
The maximum intercentroid distance between all the regions in the cluster. |
cases |
The number of cases in the cluster. |
ex |
The expected number of cases in the cluster. |
rr |
Relative risk in the cluster window. This is
|
stat |
The test statistic for the cluster. |
p |
The p-value of the test statistic associated with the cluster. |
data(nydf)
coords <- with(nydf, cbind(x, y))
out <- scan.test(
coords = coords, cases = floor(nydf$cases),
pop = nydf$pop, nsim = 49,
longlat = TRUE, alpha = 0.2
)
# summarize all clusters
summary(out)
# summarize clusters 1 and 3
summary(out, idx = c(1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.