if (FALSE) {
# AIC
spec.ic(soi)
spec.ic(sunspotz, method='burg', col=4)
# BIC after detrending on log scale
dog <- spec.ic(soi, BIC=TRUE, detrend=TRUE, log='y')
# plot AIC and BIC (dog from previous example)
tsplot(dog[[1]][,1], dog[[1]][,2:3], col=2*1:2, type='o', pch=1:2, xlab='order',
spag=TRUE, addLegend=TRUE)
}
Run the code above in your browser using DataLab