norm.1996AJB: Adjusted Jarque-Bera Test of Univariate Normality by Urzua...

View source: R/norm_1996AJB.R

norm.1996AJBR Documentation

Adjusted Jarque-Bera Test of Univariate Normality by Urzua (1996)

Description

Given an univariate sample x, it tests

H_0 : x\textrm{ is from normal distribution} \quad vs\quad H_1 : \textrm{ not } H_0

using a test procedure by Urzua (1996), which is a modification of Jarque-Bera test.

Usage

norm.1996AJB(x, method = c("asymptotic", "MC"), nreps = 2000)

Arguments

x

a length-n data vector.

method

method to compute p-value. Using initials is possible, "a" for asymptotic for example.

nreps

the number of Monte Carlo simulations to be run when method="MC".

Value

a (list) object of S3 class htest containing:

statistic

a test statistic.

p.value

p-value under H_0.

alternative

alternative hypothesis.

method

name of the test.

data.name

name(s) of provided sample data.

References

\insertRef

urzua_correct_1996SHT

Examples

## generate samples from uniform distribution
x = runif(28)

## test with both methods of attaining p-values
test1 = norm.1996AJB(x, method="a") # Asymptotics
test2 = norm.1996AJB(x, method="m") # Monte Carlo 


SHT documentation built on Nov. 3, 2022, 9:06 a.m.

Related to norm.1996AJB in SHT...