Does anyone understand how the argument "span" is used in spec.pgram in R? From the help menu, it provides the following examples:
spectrum(ldeaths) spectrum(ldeaths, spans = c(3,5)) gives bandwidth= 0.241 spectrum(ldeaths, spans = c(5,7)) gives bandwidth= 0.363 spectrum(ldeaths, spans = 3) gives bandwidth= 0.127
What do c(3,5) and c(3,7) or spans=3 represent?
How the bandwidths are calculated?