silverman.plot: Plot p-values along different number of modes.

Description Usage Arguments Value Examples

View source: R/silverman.plot.R

Description

P-values are obtained using the silverman.test function with the number of modes ranging from kmin to kmax.

Usage

1
silverman.plot(x, kmin = 1, kmax = 5, alpha = 0.05, adjust = FALSE)

Arguments

x

The vector of data to use for testing.

kmin, kmax

The number of modes.

alpha

Significance level, shown as a dashed line in the resulting plot.

adjust

Perform p-value adjustment in case of k=1 (see Hall and York).

Value

The function does not return anything, but creates a plot.

Examples

1
silverman.plot(x = c(rpois(n = 50, lambda = 1), rnorm(n = 100, mean = 4)))

jenzopr/silvermantest documentation built on Nov. 4, 2019, 2:39 p.m.