# NOT RUN {
set.seed(111)
d=defaultTimeseries(1000,0.3,20,0.01)
n=rep(1000,20)
IntraCorr=intraBeta(d,n)
#Jackknife correction
IntraCorr=intraBeta(d,n, JC=TRUE)
# }
# NOT RUN {
#Bootstrap correction with confidence intervals
IntraCorr=intraBeta(d,n, B=1000, CI_Boot=0.95 )
#Bootstrap correction with confidence intervals and plot
IntraCorr=intraBeta(d,n, B=1000, CI_Boot=0.95, plot=TRUE )
#Double Bootstrap correction with 10 repetitions in the inner loop and 50 in the outer loop
IntraCorr=intraBeta(D1,N1, DB=c(10,50))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab