Package 'PSGoft'

Title: Modified Lilliefors Goodness-of-Fit Normality Test
Description: Presentation of a new goodness-of-fit normality test based on the Lilliefors method. For details on this method see: Sulewski (2019) <doi:10.1080/03610918.2019.1664580>.
Authors: Piotr Sulewski [aut, cre]
Maintainer: Piotr Sulewski <[email protected]>
License: GPL-3
Version: 0.0.1
Built: 2024-12-25 06:32:26 UTC
Source: CRAN

Help Index


A real data set on Dozer Cycle Times

Description

The data set from AbouRizk, S.M., Halpin, D.W., Wilson, J. R. (1994). Fitting beta distributions based on sample data. Journal of Construction Engineering and Management 120(2), 288–305. consist of 72 observations for Dozer Cycle Times

Usage

data1

Format

A data frame with 72 observations


A real data set on the height of five-year-old British boys

Description

The data set presents the height of 99 five-year-old British boys in cm downloaded from http://www.mas.ncl.ac.uk/njnsm/medfac/docs/intro.pdf.

Usage

data2

Format

A data frame with 99 observations


Modified Lilliefors Goodness-of-Fit Normality Test

Description

Calculates the p-value of the modified Lilliefors goodness-of-fit normality test.

Usage

MLF.pvalue(x)

Arguments

x

a numeric vector of data values, the number of which must be greater than 4.

Details

The modified Lilliefors goodness-of-fit p-value.

Value

The function returns the p-value of the modified Lilliefors goodness-of-fit normality test.

Author(s)

Piotr Sulewski, [email protected], Pomeranian University in Slupsk.

References

Sulewski, P. (2019). Modified Lilliefors Goodness-of-fit Test for Normality. Communications in Statistics - Simulation and Computation 51(3), 1199-1219.

Examples

MLF.pvalue(rnorm(33, mean = 0, sd = 2))
MLF.pvalue(data1)

Modified Lilliefors Goodness-of-Fit Normality Test

Description

Calculates the value of the modified Lilliefors goodness-of-fit normality test statistic.

Usage

MLF.stat(x)

Arguments

x

a numeric vector of data values, the number of which must be greater than 4.

Details

The modified Lilliefors goodness-of-fit normality test statistic, see formula (5) in the article.

Value

The function returns the value of the modified Lilliefors goodness-of-fit normality test statistic.

Author(s)

Piotr Sulewski, [email protected], Pomeranian University in Slupsk.

References

Sulewski, P. (2019). Modified Lilliefors Goodness-of-fit Test for Normality. Communications in Statistics - Simulation and Computation 51(3), 1199-1219.

Examples

MLF.stat(rnorm(33, mean = 0, sd = 2))
MLF.stat(data1)

Modified Lilliefors Goodness-of-Fit Normality Test

Description

Performs the modified Lilliefors goodness-of-fit normality test.

Usage

MLF.test(x)

Arguments

x

a numeric vector of data values, the number of which must be greater than 4.

Details

The modified Lilliefors goodness-of-fit normality test statistic, see formula (5) in the article.

Value

A list with class “htest” containing the following components:

statistic - the value of the modified Lilliefors statistic.

p.value - the p-value for the test.

method - the character string “Modified Lilliefors goodness-of-fit normality test”.

data.name - a character string giving the name(s) of the data.

Author(s)

Piotr Sulewski, [email protected], Pomeranian University in Slupsk.

References

Sulewski, P. (2019). Modified Lilliefors Goodness-of-fit Test for Normality. Communications in Statistics - Simulation and Computation 51(3), 1199-1219.

Examples

MLF.test(rnorm(33, mean = 0, sd = 2))
MLF.test(data1)

The list of package functions and their demonstration

Description

The PSGoft package puts into practice the modified Lilliefors goodness-of-fit normality test. This modification consists in varying a formula of calculating the empirical distribution function. Values of constants a, b in the formula depend on values of sample skewness and excess kurtosis, which is recommended in order to increase the power of the LF test.

Data sets in the package

data1

data2

Functions for the modified Lilliefors goodness-of-fit normality test

MLF.stat

MLF.pvalue

MLF.test