Description Usage Arguments Value Author(s) References See Also Examples
Calculate the approximate p
-values of the test statistics
Tn
, Vn
and Wn
using limit null distributions.
1 2 3 | p.OneChange(n, d, Sn)
p.Epidemic.Vn(Vn, d, tol = 1e-10)
p.Epidemic.Wn(Wn, tol = 1e-07)
|
Sn |
test statistic |
Vn |
test statistic |
Wn |
test statistic |
n |
sample size |
d |
dimension of the data value |
tol |
the desired accuracy. |
p.value |
|
Zhong Guan zguan@iusb.edu
Guan, Z.(2001) Some Results About Empirical Likelihood Method, Ph.D. Thesis, The University of Toledo.
Guan, Z.(2004) A semiparametric changepoint model, Biometrika, 91, 4, 849–862.
Guan, Z. Semiparametric Tests for Change-points with Epidemic Alternatives.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | require(sac) #load the package
# one-change alternative
k<-10
n<-30
x<-rnorm(n,0,1)
x[(k+1):n]<-x[(k+1):n]+1.5
T<-SemiparChangePoint(x, alternative = "one.change")$Sn
p.OneChange(n, d=1, T)
# epidemic alternative
k<-5
m<-10
n<-20
x<-rnorm(n,0,1)
x[(k+1):m]<-x[(k+1):m]+1.5
res<-SemiparChangePoint(x, alternative = "e")
V<-res$Vn; W<-res$Wn
p.Epidemic.Vn(V, d=1)
p.Epidemic.Wn(W)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.