btsampleStaty: Bootstrap from a stationary time series

Description Usage Arguments Value References Examples

Description

Indexes for bootstrap from a stationary time series

Usage

1
btsampleStaty(size,p)

Arguments

size

length of time series

p

geometric rate such as size^(-1/3)

Value

vector of length 'size', each element is an integer between 1 and 'size'

References

Politis DN and Romano JP (1994). The stationary bootstrap. Journal of the American Statistical Association, 89, 1303–1313.

Examples

1
2
3
4
5
6
7
set.seed(123)
n=500
p=n^(-1/3)
for(isim in 1:5)
{ ii=btsampleStaty(n,p)
  print(length(unique(ii))) 
}

YafeiXu/CopulaModel documentation built on May 9, 2019, 11:07 p.m.