qCvMgof: Calculate the Quantile of the Cramer-von Mises Goodness-of-Fit Statistic
Description
This function calculates the quantile of the Cramer-von Mises goodness-of-fit
statistic using the `uniroot` function to find the root of the given function.
Usage
qCvMgof(X, p)
Value
root
The quantile value corresponding to the given probability.
Arguments
X
A numeric vector containing the sample data.
p
A numeric value representing the desired quantile probability.
# Example usage:set.seed(123)
X <- rnorm(100) # Generate a sample from a normal distributionp <- 0.95 # Desired quantile probabilityresult <- qCvMgof(X, p)
print(result)