gof_statistics: Get goodness of fit statistics for the spatial residuals of a...

Description Usage Arguments

View source: R/gof_statistics.R

Description

Get goodness of fit statistics for the spatial residuals of a MRF model.

Usage

1
2
3
4
5
6
gof_statistics(
  residuals,
  conclique_cover,
  statistic = c("ks", "cvm"),
  aggregate = c("mean", "max")
)

Arguments

residuals

A vector containing residuals for each location in the lattice, output from spatial_residuals.

conclique_cover

A list of class "conclique_cover" encoding the locations in each conclique for the conclique cover

statistic

Which goodness of fit statistic to use, Kolmogorov-Smirnov ("ks") or Cramer von Mises ("cvm"). Kolmogorov-Smirnov is the default choice.

aggregate

How to aggregate GOF statistics across concliques, mean ("mean") or max ("max"). Mean is the default. Can also be a name of a user defined aggregation function.


andeek/conclique documentation built on Dec. 26, 2021, 3:12 a.m.