Learn R Programming

Rgof (version 3.2.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

270

Version

3.2.0

License

GPL (>= 2)

Maintainer

Wolfgang Rolke

Last Published

April 27th, 2025

Functions in Rgof (3.2.0)

gof_power_C

find power of gof tests for continuous data
run.studies

This function runs the case studies included in the package
power_newtest

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

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

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

pvaluecdf
wbincounter

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

power_studies_results
timecheck

estimate run time function
signif.digits

This function does some rounding to nice numbers
gof_adj_C2

helper functions to do p value adjustment
make_bins_cont

This function creates several type of bins for continuous data
gof_test_adjusted_pvalue

This function performs a number of gof tests and finds the adjusted p value for the combined test
gof_adj_C1

helper functions to do p value adjustment
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.
chi_power_disc

This function finds the power of various chi-square tests for continuous data
check.functions

This function checks whether the inputs have the correct format
gof_power

Find the power of various gof tests.
gof_test

This function performs a number of gof tests
chi_power_cont

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

Find test statistics for discrete data
make_bins_disc

This function creates several types of bins for discrete data
bincounter

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

Find test statistics for discrete data
gof_test_C

run gof tests for continuous data
Rgof-package

Rgof: 1d Goodness of Fit Tests
TSw_cont

Find test statistics for continuous data with weights
calcTS

This function calculates the test statistics for data
plot_power

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

a local function needed for the vignette