Description Usage Arguments Value Examples
View source: R/silverman.test.R
The silvermantest tests the null hypothesis that an underlying density has at most k
modes.
1 2 | silverman.test(x, k, R = 999, adjust = FALSE, digits = 6,
density.fun = NULL)
|
x |
vector of data |
k |
number of modes for the null hypothesis |
R |
number of bootstrap replications |
adjust |
boolean to activate the adjusting of the p-value (valid if k=1) (see Hall and York) |
digits |
number of digits of the p-value |
density.fun |
A function that returns a vector of density estimates |
An object of the class Silvermantest (see: Silvermantest-class
).
1 2 | x <- c(rpois(n = 50, lambda = 1), rnorm(n = 100, mean = 4))
silverman.test(x, k = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.