ResScanOutput: Constructor function for objects of the ResScanOutput class

View source: R/HDSpatialScan_Classes.R

ResScanOutputR Documentation

Constructor function for objects of the ResScanOutput class

Description

This is the constructor function for objects of the ResScanOutput class.

Usage

ResScanOutput(
  sites_clusters,
  pval_clusters,
  centres_clusters,
  radius_clusters,
  areas_clusters,
  system,
  sites_coord,
  data,
  method
)

Arguments

sites_clusters

list. List of the indices of the sites of the selected clusters.

pval_clusters

numeric vector. The pvalues of the selected clusters.

centres_clusters

numeric matrix. Coordinates of the centres of the selected clusters.

radius_clusters

numeric vector. Radius of the selected clusters.

areas_clusters

numeric vector. Areas of the selected clusters.

system

character. System in which the coordinates are expressed: "Euclidean" or "WGS84".

sites_coord

numeric matrix. Coordinates of the sites (or the individuals, in that case there can be many individuals with the same coordinates).

data

list of numeric matrices or a matrix or a vector. List of nb_sites (or nb_individuals if the observations are by individuals and not by site) matrices of the data, the rows correspond to the variables and each column represents an observation time (multivariate functional case) ; or Matrix of the data, the rows correspond to the sites (or to the individuals) and each column represents an observation time (univariate functional case) or a variable (multivariate case) ; or Vector of the data, the elements correspond to the sites (or to the individuals) (univariate case).

method

character. The scan procedure used.

Value

An object of class ResScanOutput which is a list of the following elements:

  • sites_clusters: List of the indices of the sites of the selected clusters.

  • pval_clusters: The pvalues of the selected clusters.

  • centres_clusters: Coordinates of the centres of the selected clusters.

  • radius_clusters: Radius of the selected clusters.

  • areas_clusters: Areas of the selected clusters.

  • system: System in which the coordinates are expressed: "Euclidean" or "WGS84".

  • sites_coord: Coordinates of the sites (or the individuals, in that case there can be many individuals with the same coordinates).

  • data: List of numeric matrices or a matrix or a vector.

  • method: The scan procedure used.


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