Learn R Programming

⚠️There's a newer version (3.2.0) of this package.Take me there.

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

License

GPL (>= 2)

Maintainer

Wolfgang Rolke

Last Published

March 13th, 2025

Functions in Rgof (3.1.0)

power_disc_R

Find the power of various gof tests for discrete data.
make_bins_disc

This function creates several types of bins for discrete data
newTSdisc

a local function needed for the vignette
gof_test_disc

This function performs a number of gof tests for discrete data.
run.studies

This function runs the case studies included in the package
gof_test_cont_adj

This function performs a number of gof tests for continuous data and finds the adjusted p value
signif.digits

This function does some rounding to nice numbers
power_newtest

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

This function performs a number of gof tests for discrete data and finds the adjusted p value
gof_cont

run gof tests for continuous data
make_bins_cont

This function creates several type of bins for continuous data
timecheck

estimate run time function
wbincounter

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

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

power_studies_results
power_cont

find power of gof tests for continuous data
pvaluecdf

pvaluecdf
gof_test_adjusted_pvalue

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

Find the power of various gof tests for continuous data.
gof_test_cont

This function performs a number of gof tests for continuous data
power_disc

find power of gof tests for continuous data
bincounter

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

Find test statistics for continuous data
case.studies

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

Find test statistics for discrete data
check.functions

This function checks whether the inputs have the correct format
chi_test_cont

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

Find the power of various gof tests for continuous data.
gof_power_cont

Find the power of various gof tests for continuous data.
Cpporder

sort vector y by values in vector x
TSw_cont

Find test statistics for continuous data with weights
TSw_disc

Find test statistics for discrete data
calcTS

This function calculates the test statistics
Rgof-package

Rgof: 1d Goodness of Fit Tests
gof_power_disc

Find the power of various gof tests for discrete data.
gof_disc

run gof tests for discrete data
chi_power_cont

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

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
gof_test

This function performs a number of gof tests