summary.ResScanOutputUni {HDSpatialScan} | R Documentation |
Summary of the clusters obtained with a univariate scan function (UG or UNP).
Description
This function gives a summary of the clusters in a table
Usage
## S3 method for class 'ResScanOutputUni'
summary(
object,
type_summ = "param",
digits = 3,
quantile.type = 7,
only.MLC = FALSE,
...
)
Arguments
object |
ResScanOutputUni. Output of a univariate scan function (UG or UNP). |
type_summ |
character. "param" or "nparam". "param" gives the mean and the sd for each variable in the clusters, outside, and globally and "nparam" gives the Q25, Q50 and Q75 quantiles for each variables in the clusters, outside, and globally. |
digits |
integer. Number of decimals in the output. |
quantile.type |
An integer between 1 and 9 (see function quantile). Ignored if type_summ is "param" |
only.MLC |
logical. Should we summarize only the MLC or all the significant clusters? |
... |
Further arguments to be passed to or from methods. |
Value
No value returned, displays the results in the console
Examples
library(sp)
data("map_sites")
data("multi_data")
uni_data <- multi_data[,1]
coords <- coordinates(map_sites)
res_unp <- SpatialScan(method = "UNP", data=uni_data, sites_coord = coords,
system = "WGS84", mini = 1, maxi = nrow(coords)/2)$UNP
summary(object = res_unp, type_summ = "nparam")
[Package HDSpatialScan version 1.0.4 Index]