Periodogram
SAMPLE
RUN
ONE
#Denotes comments added after the session. #In S-Plus: > X11() #Enable graphics window. > source("plotper.S") # Read in the program. > z <- scan(file="data") # Read in file called data and assign to vector z. > h1 <- plotper(z) # Do default periodogram (Series length 10000) and # assign result to h1, and get the first figure. > H = 0.723929229552899 # Estimated H. > h1 [1] 0.7239292 # Estimated H.Graphical output.
SAMPLE
RUN
TWO
> h2 <- perbox(z) # Use the modified periodogram. > H = 0.682668997899413 # Estimated H. > h2 [1] 0.682669 # Estimated H.Graphical output.
SAMPLE
RUN
THREE
> h3 <- cumper(z) # Use the cumulative periodogram. > h3 [1] 0.6955248 # Estimated H. >q() # Quit.