kSymmetryTest: kSymmetryTest

Description Usage Arguments Value Examples

Description

Performs a pdf symmetry test for given data based on the estimated kernel densities and the permutation test.

Usage

1
kSymmetryTest(x, around = "median", ...)

Arguments

x

A numeric vector of data.

around

The desired value to check if the density is symmetric around. Must be one of 'mean', 'median', or a real number.

...

Futher parameters to be passed to kTest.

Value

A list containing:

- densities: The estimated densities for each group.

- labels: The group labels.

- ca: Common area between the (data - point) and (point - data) densities.

- pvalue: The p-value generated by the permutation test.

Examples

1
2
3
4
x = rnorm(100)
test = kSymmetryTest(x)
print(test)
plot(test)

vcoscrato/ktest documentation built on May 9, 2019, 10:01 p.m.