ksgof: Perform the Lilliefors (Kolmogorov-Smirnov) Goodness-of-Fit...

View source: R/ksgof.R

ksgofR Documentation

Perform the Lilliefors (Kolmogorov-Smirnov) Goodness-of-Fit Test for Normality

Description

Perform the Lilliefors (Kolmogorov-Smirnov) Goodness-of-Fit Test for Normality

Usage

ksgof(x)

Arguments

x

A numeric vector containing the sample data.

Value

statistic

The value of the Lilliefors (Kolmogorov-Smirnov) test statistic.

p.value

The p-value for the test.

method

A character string describing the test.

Examples

# Example usage:
set.seed(123)
x <- rnorm(100)  # Generate a sample from a normal distribution
result <- ksgof(x)
print(result)

# Example with non-normal data:
y <- rexp(100)  # Generate a sample from an exponential distribution
result <- ksgof(y)
print(result)

Dogoftest documentation built on Aug. 8, 2025, 7:35 p.m.

Related to ksgof in Dogoftest...