Learn R Programming

Dogoftest (version 0.3)

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.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab