summary.ResScanOutputMultiFunct: Summary of the clusters obtained with a multivariate...

View source: R/HDSpatialScan_summary.R

summary.ResScanOutputMultiFunctR Documentation

Summary of the clusters obtained with a multivariate functional scan function (MPFSS, NPFSS, MDFFSS or MRBFSS).

Description

This function gives a summary of the clusters in a table

Usage

## S3 method for class 'ResScanOutputMultiFunct'
summary(
  object,
  type_summ = "param",
  digits = 3,
  quantile.type = 7,
  only.MLC = FALSE,
  ...
)

Arguments

object

ResScanOutputMultiFunct. Output of an multivariate functional scan function (MPFSS, NPFSS, MDFFSS or MRBFSS).

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("fmulti_data")
coords <- coordinates(map_sites)

res_npfss <- SpatialScan(method = "NPFSS", data = fmulti_data, sites_coord = coords,
system = "WGS84", mini = 1, maxi = nrow(coords)/2)$NPFSS

summary(object = res_npfss, type_summ = "nparam")



HDSpatialScan documentation built on May 31, 2023, 7:52 p.m.