extension of the bootstrap replications

Share:

Description

This function updates an existing bootstrap test with new bootstrap replications.

Usage

1
  extendBoot(x, nboot)

Arguments

x

A object from setarTest (hence of class Hansen99Test)

nboot

The number of new bootstrap replications

Details

The plot function will draw the old and new distribution, hence allowing to test the sensitivity of the results obtained.

Value

Returns an object of the same class with same objects but updated values.

Author(s)

Matthieu Stigler

See Also

BBCTest for a similar test. setarTest for a test with stationarity as a null.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# test with 10 bootstrap replications:
a<-setarTest(sun[1:100], m=1, nboot=10)
plot(a)

#use old results and compue 20 new replications
b<-extendBoot(a, n=20)
#see the different distributions:
plot(b)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.