Learn R Programming

SciencesPo (version 1.3.9)

geary: Geary's test for normality

Description

This function computes an estimator of Geary's measure of kurtosis.

Usage

geary(x, na.rm = TRUE)

Arguments

x
the numeric vector.
na.rm
A logical for NA values.

Value

  • statistic The Geary's test of statistic G.

    p.value The significant probability of the null-hypothesis testing.

encoding

UTF-8

Details

Null hypothesis is that the data obeys to normal distribution and that data should have kurtosis equal to 3.

Examples

Run this code
set.seed(1234)
x = rnorm(1000)
geary(x)

geary(20:50)

y = c(0.269, 0.357, 0.2, 0.221, 0.275, 0.277, 0.253, 0.127, 0.246)

stats::qqnorm(y)

Run the code above in your browser using DataLab