Package: MDgof 1.0.2

MDgof: Various Methods for the Goodness-of-Fit Problem in D>1 Dimensions

The routine gof_test() in this package runs the goodness-of-fit test using various test statistic for multivariate data. Models under the null hypothesis can either be simple or allow for parameter estimation. p values are found via the parametric bootstrap (simulation). The routine gof_test_adjusted_pvalues() runs several tests and then finds a p value adjusted for simultaneous inference. The routine gof_power() allows the estimation of the power of the tests. hybrid_test() and hybrid_power() do the same by first generating a Monte Carlo data set under the null hypothesis and then running a number of two-sample methods. The routine run.studies() allows a user to quickly study the power of a new method and how it compares to those included in the package via a large number of case studies. For details of the methods and references see the included vignettes.

Authors:Wolfgang Rolke [aut, cre]

MDgof_1.0.2.tar.gz
MDgof_1.0.2.zip(r-4.7)MDgof_1.0.2.zip(r-4.6)MDgof_1.0.2.zip(r-4.5)
MDgof_1.0.2.tgz(r-4.6-x86_64)MDgof_1.0.2.tgz(r-4.6-arm64)MDgof_1.0.2.tgz(r-4.5-x86_64)MDgof_1.0.2.tgz(r-4.5-arm64)
MDgof_1.0.2.tar.gz(r-4.7-arm64)MDgof_1.0.2.tar.gz(r-4.7-x86_64)MDgof_1.0.2.tar.gz(r-4.6-arm64)MDgof_1.0.2.tar.gz(r-4.6-x86_64)
MDgof_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
MDgof/json (API)

# Install 'MDgof' in R:
install.packages('MDgof', repos = c('https://wolfgangrolke.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

3.08 score 396 downloads 29 exports 63 dependencies

Last updated from:db3face0e7. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK181
linux-devel-x86_64OK188
source / vignettesOK263
linux-release-arm64OK214
linux-release-x86_64OK182
macos-release-arm64OK184
macos-release-x86_64OK271
macos-oldrel-arm64OK148
macos-oldrel-x86_64OK236
windows-develOK165
windows-releaseOK152
windows-oldrelOK172
wasm-releaseOK185

Exports:case.studiescase.studies.contcase.studies.cont.D5case.studies.disccase.studies.estchange.marginalschi_cont_testchi_disc_testchi_powerdiscretizedraw_casegen.copgof_powergof_testgof_test_adjusted_pvaluehybrid_powerhybrid_testmakeTSextranewTSp2dCpower_pvalsRipleyKrun.studiessimpvalssimTSsq2rectimecheckTS_contTS_disc

Dependencies:abindade4ADGofTestBallcliclustercodetoolscolorspacecopulacpp11deldirfarverFNNforeachgamggplot2gluegoftestgslgtablegTestsigraphisobanditeratorslabelinglatticelifecyclelsamagrittrMASSMatrixMD2samplemicrobenchmarkmvtnormnlmenumDerivpcaPPpixmappkgconfigpolyclippsplineR6RColorBrewerRcppRcppArmadillorlangS7scalesSnowballCspspatstat.dataspatstat.explorespatstat.geomspatstat.randomspatstat.sparsespatstat.univarspatstat.utilsstabledistsurvivaltensorvctrsviridisLitewithr

MDgof-Case-Studies
Continuous Data, dim=2, equal marginals, no parameter estimation | Continuous Data, dim=2, unequal marginals, no parameter estimation | Continuous Data, dim=2, equal marginals, with parameter estimation | Continuous Data, dim=2, unequal marginals, with parameter estimation | Continuous Data, dim=5, equal marginals, no parameter estimation | Continuous Data, dim=5, unequal marginals, no parameter estimation | Discrete data

Last update: 2026-02-12
Started: 2026-02-12

MDgof-Examples
Example 1: Continuous data without parameter estimation | Example 2: Continuous data with parameter estimation | New Tests | Example 3 | Adjusted p values | Power Estimation | Example 4 | Discrete Data | Example 5 | Example 6 | User supplied tests | Example 7 | Benchmarking | Example 8

Last update: 2026-02-12
Started: 2026-02-12

MDgof-hybrid
Example 1: Continuous data without parameter estimation | Example 2: Continuous data with parameter estimation | New Tests | Example 3 | Power Estimation | Example 4 | Discrete Data | Example 5 | User supplied tests | Example 7

Last update: 2026-02-12
Started: 2026-02-12

MDgof-Methods
Continuous data | Tests based on a comparison of the theoretical and the empirical distribution function. | Tests based on the Rosenblatt transform. | Discrete data | Methods based on the empirical distribution fuction. | Methods based on the density | References

Last update: 2026-02-12
Started: 2026-02-12

Readme and manuals

Help Manual

Help pageTopics
Run Bakshaev and Rudzkis Testbakshaev_rudzkis
Create various case studiescase.studies
Create various case studies for continuous data without parameter estimationcase.studies.cont
Create various case studies for continuous data in 5 dimensions without parameter estimationcase.studies.cont.D5
Discretize 2D data from case studiescase.studies.disc
Create various case studies with parameter estimationcase.studies.est
Sanity Checkscheck.functions
Chi-square test for 2D datachi_cont_test
Chi-square test for discrete 2D datachi_disc_test
Power Estimation of Chi Square Testschi_power
Compute M statistic for one dtasetcompute_M_for_dtaset
Bins continuous datadiscretize
Create plot for any case studydraw_case
Estimate E and Var/n at Eval for given h, using MC from rnullestimateEV
examples.mdgof.vignetteexamples.mdgof.vignette
Find gaussian kernel pdfgauss_kernel_matrix
Find evaluation pointsgen_eval
Create copula objectsgen.cop
Power estimation of goodness-of-fit tests.gof_power
Tests for the multivariate goodness-of-fit problemgof_test
Adjusted p valuesgof_test_adjusted_pvalue
Find gradient of log(f) for a matrix of pointsgrad_mat
Power Estimation for the multivariate goodness-of-fit problem via twosample testshybrid_power
Tests for the multivariate goodness-of-fit problem via twosample testshybrid_test
hybrid.mdgof.vignettehybrid.mdgof.vignette
Find test statistic for Kernel Stein Discrepancy testksd
Create list with needed infomakeTSextra
Example for a new testnewTS
Find probabilities from cdf for discrete datap2dC
power_studies_cont_D5_hybrid_resultspower_studies_cont_D5_hybrid_results
power_studies_cont_D5_resultspower_studies_cont_D5_results
power_studies_cont_est_resultspower_studies_cont_est_results
power_studies_cont_hybrid_resultspower_studies_cont_hybrid_results
power_studies_cont_nMC5_D5_hybrid_resultspower_studies_cont_nMC5_D5_hybrid_results
power_studies_cont_nMC5_hybrid_resultspower_studies_cont_nMC5_hybrid_results
power_studies_cont_resultspower_studies_cont_results
power_studies_disc_est_resultspower_studies_disc_est_results
power_studies_disc_hybrid_resultspower_studies_disc_hybrid_results
power_studies_disc_nMC5_hybrid_resultspower_studies_disc_nMC5_hybrid_results
power_studies_disc_resultspower_studies_disc_results
Ripley's K function testRipleyK
Benchmarking for Multivariate Goodness-of-fit Testsrun.studies
This function does some rounding to nice numberssignif.digits
Rearrange 2D discrete datasq2rec
estimate run time functiontimecheck
Find test statistics for continuous dataTS_cont
Find test statistics for discrete dataTS_disc