Description Usage Arguments Value Examples
The rms_gof()
function implements Monte Carlo simulations to calculate p-values
based on the root-mean-square statistic for goodness-of-fit tests for discrete
distributions.
1 |
x |
a numeric vector that contains observed counts for each bin/category. |
p |
a vector of probabilities of the same length of x. An error is given if any entry of p is negative or if the sum of p does not equal one. |
reps |
an integer specifying the number of Monte Carlo simulations. The default is set to 10,000 which may be appropriate for exploratory analysis. A higher number of simulation should be selected for more precise results. |
tolerance |
sets an upper bound for rounding errors when evaluating
whether a statistic for a simulation is greater than or equal to the
statistic for the observed data. The default is identical to the tolerance
set for simulations in the |
A list with class "htest" containing the following components:
statistic |
the value of the root-mean-square test statistic |
p.value |
the simulated p-value for the test |
method |
a character string describing the test |
data.name |
a character string give the name of the data |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.