MyNixOS website logo
Description
Modified Lilliefors Goodness-of-Fit Normality Test
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>.

PSGoft: Modified Lilliefors Goodness-of-Fit Normality Test

author: Piotr Sulewski, Pomeranian University

The goal of the PSGoft package is to put into practice the (a,b) 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. To read more about the package please see (and cite :)) papers:

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

Installation

You can install the released version of PSGoft from CRAN with:

install.packages("PSGoft")

You can install the development version of PSGoft from GitHub with:

library("remotes")
remotes::install_github("PiotrSule/PSGoft")

This package includes two real data sets

The first one, data1, consist of 72 observations for Dozer Cycle Times.

The second one, data2, is the height of 99 five-year-old British boys in cm

library(PSGoft)
length(data1)
#> [1] 72
head(data2)
#> [1] 96.1 97.1 97.1 97.2 99.2 99.4

Functions

MLF.stat

This function returns the value of the Modified Lilliefors goodness-of-fit statistic

MLF.stat(data1)
#> [1] 0.05488005
MLF.stat(rnorm(33, mean = 0, sd = 2))
#> [1] 0.09910243

MLF.pvalue

This function returns the p-value for the test

MLF.pvalue(data1)
#> [1] 0.81592
MLF.pvalue(rnorm(33, mean = 0, sd = 2))
#> [1] 0.66459

MLF.stat

This function returns the value of the Modified Lilliefors statistic and the p-value for the test.

MLF.test(data1)
#> 
#>  Modified Lilliefors goodness-of-fit normality test
#> 
#> data:  data1
#> D = 0.05488, p-value = 0.816
MLF.test(rnorm(33, mean = 0, sd = 2))
#> 
#>  Modified Lilliefors goodness-of-fit normality test
#> 
#> data:  rnorm(33, mean = 0, sd = 2)
#> D = 0.083871, p-value = 0.748
Metadata

Version

0.0.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows