## Not run:
# #1. Compare two objects
# N1 = 1000
# N2 = 2000
# data.ar = gen.gts(AR1(phi = .32, sigma2=.01), N1)
# data.arma = gen.gts(ARMA(ar=c(.8,.1), ma=c(.3), sigma2=1), N2)
# wvar1 = wvar(data.ar)
# wvar2 = wvar(data.arma, robust = T)
# compare.wvar(wvar1, wvar2)
# compare.wvar(wvar1, wvar2, split=F)
# compare.wvar(wvar1, wvar2, CI = F)
# compare.wvar(wvar1, wvar2, split=F, CI = F)
# #2. Compare multiple objects
# N1 = 1000
# N2 = 2000
# N3 = 4000
# N4 = 3500
# data1 = gen.gts(AR1(phi = .32, sigma2=.01), N1)
# data2 = gen.gts(ARMA(ar=c(.8,.1), ma=c(.3), sigma2=1), N2)
# data3 = gen.gts(AR1(phi = .32, sigma2=1), N3)
# data4 = gen.gts(ARMA(ar=c(.8,.1), ma=c(.5), sigma2=1), N4)
# wvar1 = wvar(data1)
# #wvar1 = wvar(data1, robust = T)
# wvar2 = wvar(data2)
# wvar3 = wvar(data3)
# wvar4 = wvar(data4)
# compare.wvar(wvar1,wvar2,wvar3,wvar4, nrow = 2)
# compare.wvar(wvar1,wvar2,wvar3,wvar4, split = F , CI = F)
# #3. Change default setting
# compare.wvar(wvar1, wvar2, wvar3,wvar4, CI.color = c('green','red','blue','black'))
# compare.wvar(wvar1, wvar2, wvar3,wvar4, CI.color = c('green','red','blue','black'),
# facet.label.size = 9)
# compare.wvar(wvar1, wvar2, wvar3,wvar4, CI.color = c('green','red','blue','black'),
# legend.label = c('1','2','3','4'))
# compare.wvar(wvar1, wvar2, wvar3,wvar4, CI.color = c('green','red','blue','black'),
# legend.label = c('1','2','3','4'), split = F)
# compare.wvar(wvar1, wvar2, wvar3,wvar4, CI.color = c('green','red','blue','black'),
# legend.label = c('1','2','3','4'), split = F, CI = F)
# ## End(Not run)
Run the code above in your browser using DataLab