View source: R/gof_statistics.R
Get goodness of fit statistics for the spatial residuals of a MRF model.
1 2 3 4 5 6 | gof_statistics(
residuals,
conclique_cover,
statistic = c("ks", "cvm"),
aggregate = c("mean", "max")
)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.