data(SB32)
str(SB32)
#Figure from our paper
## Not run:
# ans0 <- artfima(SB32, fixd=5/6)
# ans1 <- artfima(SB32, arimaOrder=c(1,0,2)) #best
# p <- ans1$arimaOrder[1]
# q <- ans1$arimaOrder[3]
# sigmaSq1 <- ans1$sigmaSq
# sigmaSq0 <- ans0$sigmaSq
# w <- SB32
# n <- length(w)
# Ip <- Periodogram(w)
# fr <- (1/n)*(1:length(Ip))
# plot(log(fr), log(Ip), xlab="log frequency", ylab="log power",
# type="p", col=rgb(0,0,1,0.4), pch=16)
# y <- sigmaSq1*artfimaSDF(n=length(SB32), obj=ans1, plot="none")
# lines(log(fr), log(y), type="l", lwd=2.5, col="red")
# y0 <- sigmaSq0*artfimaSDF(n=length(SB32), obj=ans0, plot="none")
# lines(log(fr), log(y0), type="l", lwd=3.5, col="green", lty=2)
# TFD_label <- expression(paste("TFD, ", delta == 5/6, ", ",
# hat(lambda) == 0.045))
# legend(x=-8, y=-5, xjust=0, yjust=0, legend=c("ARTFIMA(1,0,2)", TFD_label),
# lty=c(1,2), lwd=c(2.5,3.5), col=c("red", "green"), bty="n")
# ## End(Not run)
Run the code above in your browser using DataLab