proportionsComparison: Compare relative proportions data

View source: R/benchmarking.R

proportionsComparisonR Documentation

Compare relative proportions data

Description

Compares two datasets of relative proportions of multiple classes (sum of classes equals one at each point) where the total for each data where the totally value for each. Specifically calculates and returns a list with the Manhattan Metric (MM) and Square Chord Distance (SCD).

Usage

proportionsComparison(
  x,
  layers1,
  layers2,
  additional,
  verbose = TRUE,
  area = TRUE
)

Arguments

x

A data.table containing the spatial-temporal-annual columns and two columns containing the data to be compared

layers1

A vector of character strings giving the layers from the second dataset to compare (should be columns in x and sum to 1 or 100)

additional

A list of functions define additions metrics, see the custom.metrics argument of compareLayers

verbose

A logical, if TRUE print out all the metric scores

area

A logical, if true weight the metrics by gridcell area (not implemented)

Value

A named list of metric statistics

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.