qCvMgof {Dogoftest} | R Documentation |
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)
Arguments
X |
A numeric vector containing the sample data. |
p |
A numeric value representing the desired quantile probability. |
Value
root |
The quantile value corresponding to the given probability. |
Examples
# Example usage:
set.seed(123)
X <- rnorm(100) # Generate a sample from a normal distribution
p <- 0.95 # Desired quantile probability
result <- qCvMgof(X, p)
print(result)
[Package Dogoftest version 0.2 Index]