Learn R Programming

Rgof (version 3.3.0)

1d Goodness of Fit Tests

Description

Routines that allow the user to run a large number of goodness-of-fit tests. It allows for data to be continuous or discrete. It includes routines to estimate the power of the tests and display them as a power graph. The routine run.studies allows a user to quickly study the power of a new method and how it compares to some of the standard ones.

Copy Link

Version

Install

install.packages('Rgof')

Monthly Downloads

353

Version

3.3.0

License

GPL (>= 2)

Maintainer

Wolfgang Rolke

Last Published

June 16th, 2025

Functions in Rgof (3.3.0)

gof_adj_C1

helper functions to do p value adjustment
chi_test_disc

This function performs a number of chi-square gof tests for continuous data
plot_power

This function draws the power graph, with curves sorted by the mean power and smoothed for easier reading.
gof_adj_C2

helper functions to do p value adjustment
power_newtest

This function estimates the power of test routines that calculate p value(s)
gof_test_adjusted_pvalue

Adjusted p values for simultaneous testing in the goodness-of-fit problem.
make_bins_cont

This function creates several type of bins for continuous data
timecheck

estimate run time function
test_methods

This function checks whether the correct methods have been requested
make_bins_disc

This function creates several types of bins for discrete data
newTSdisc

a local function needed for the vignette
power_studies_results

power_studies_results
pvaluecdf

pvaluecdf
wbincounter

Find counts or sum of weights in bins. Useful for power calculations. Replaces hist command from R.
TS_cont

Find test statistics for continuous data
Cpporder

sort vector y by values in vector x
case.studies

This function creates the functions needed to run the various case studies.
check.functions

This function checks whether the inputs have the correct format
chi_power_cont

This function finds the power of various chi-square tests for continuous data
TS_disc

Find test statistics for discrete data
gof_power

Power estimation of goodness-of-fit tests.
gof_test

Tests for the univariate goodness-of-fit problem
TSw_disc

Find test statistics for discrete data
Rgof-package

Rgof: 1d Goodness of Fit Tests
calcTS

This function calculates the test statistics for data
bincounter

count events in bins. Useful for power calculations. Replaces hist command from R.
chi_test_cont

This function performs a number of chi-square gof tests for continuous data
chi_power_disc

This function finds the power of various chi-square tests for continuous data
run.studies

Power Comparisons
gof_test_C

run gof tests for continuous data
TSw_cont

Find test statistics for continuous data with weights
gof_power_C

find power of gof tests for continuous data
signif.digits

This function does some rounding to nice numbers