check.functions: Sanity checks for goodness-of-fit model functions

View source: R/check.functions.R

check.functionsR Documentation

Sanity checks for goodness-of-fit model functions

Description

Internal validation of the data representation and null-model functions.

Usage

check.functions(pnull, rnull, phat = function(x) -99, x)

Arguments

pnull

CDF under the null hypothesis.

rnull

Function that generates data under the null hypothesis.

phat

Function that estimates null-model parameters from the data, or the default sentinel function when no parameters are estimated.

x

Matrix containing the data.

Value

Invisibly, a list containing Continuous, WithEstimation, and the standardized data matrix x.


MDgof documentation built on Sept. 23, 2026, 5:08 p.m.