crit_theta_fun: Scan Statistics Threshold

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/crit_theta_fun.R

Description

This function returns the threshold of scan statistics hypothesis test where the significance level is no larger than alpha.

Usage

1
crit_theta_fun(N, window_l, p, alpha)

Arguments

N

number of Bernoulli trials.

window_l

scan statistics window length.

p

success probabiliy for each Bernoulli trial under null hypothesis.

alpha

hypothesis test significance level.

Details

This function is using 1-dependent stationary sequences approximation for searching scan statistics threshold. It returns the threshold such that the p-value is no larger than alpha.

Value

This function returns the threshold number.

Author(s)

Zhicong Zhao

References

Haiman,G.(2007), Estimating the distribution of one-dimensional discrete scan statistics viewed as extremes of 1-dependent stationary sequences. Journal of Statistical Planning and Inference, 137(2007), 821-828.

See Also

prob_fun for details of computing the q-values.

Examples

1
crit_theta_fun(1000,10,0.1,0.05)

zhicongz/AnomDetct documentation built on Dec. 12, 2019, 9:16 a.m.