gof.compare: gof.compare

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/gof.compare.R

Description

Used internally to snopgof to perform the comparisons which form the tail statistics.

Usage

1
gof.compare(observed, simulated)

Arguments

observed

Vector valued numeric corresponding to the observation. Must have the same length as simulated has columns.

simulated

Simulated draws from the null distribution. Each row corresponds to a draw.

Details

This function should not need to be called by the typical user, as a much faster C function is used in gof.preprocess. Observed and simulated should be pre-centered about some central value before being sent to gof.compare.

Value

A matrix of the comparisons for the tail statistics. Each row corresponds to a tail statistic which can be interpreted, for row i, as "How many draws from the null observation had values along exactly i coordinates which were closer to the chosen centrality measure (i.e. mean, median, or mode) than this observation?" Thus, each column corresponds to an observation.

Author(s)

Josh Lospinoso

References

http://stats.ox.ac.uk/~lospinos

See Also

snopgof

Examples

1
# See the source of \link{gof.preprocess} for advanced uses of this function.

snopgof documentation built on May 2, 2019, 6:09 p.m.