Learn R Programming

nsp (version 1.0.0)

thresh_kab: Compute the theoretical threshold for the multiscale sup-norm if the underlying distribution is standard normal

Description

This function computes the theoretical threshold, corresponding to the given significance level alpha, for the multiscale sup-norm if the underlying distribution is standard normal.

Usage

thresh_kab(n, alpha = 0.1, method = "asymp")

Arguments

n

The sample size.

alpha

The significance level.

method

"asymp" for the asymptotic method; "bound" for the Bonferroni method.

Value

The desired threshold.

Details

For the underlying theory, see Z. Kabluchko (2007) Extreme-value analysis of standardized Gaussian increments. Unpublished.

See Also

cov_dep_multi_norm, cov_dep_multi_norm_poly, sim_max_holder

Examples

Run this code
# NOT RUN {
set.seed(1)
f <- c(1:100, 100:1, 1:100)
y <- f + stats::rnorm(300) * 15
x <- matrix(0, 300, 2)
x[,1] <- 1
x[,2] <- seq(from = 0, to = 1, length = 300)
nsp(y, x, 100, 15 * thresh_kab(300, .1))
# }

Run the code above in your browser using DataLab