Re: [R] Help with 'spectrum'

2008-09-12 Thread David Stoffer
Kevin- this is a simple rescaling of the axes so that the area under the curve remains constant (and is half of the variance since you only look at the positive frequencies). In this case, freq(x) = 1/dx, where dx is the time between points. It is basically a graphic device so that you get

Re: [R] Help with 'spectrum'

2008-09-10 Thread Oliver Bandel
Hello, [...] -- Message: 41 Date: Tue, 9 Sep 2008 9:44:34 -0700 From: [EMAIL PROTECTED] Subject: [R] Help with 'spectrum' To: r-help@r-project.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=utf-8 For the command 'spectrum' I read

[R] Help with 'spectrum'

2008-09-09 Thread rkevinburton
For the command 'spectrum' I read: The spectrum here is defined with scaling 1/frequency(x), following S-PLUS. This makes the spectral density a density over the range (-frequency(x)/2, +frequency(x)/2], whereas a more common scaling is 2π and range (-0.5, 0.5] (e.g., Bloomfield) or 1 and

Re: [R] Help with 'spectrum'

2008-09-09 Thread Prof Brian Ripley
This is why some help pages have references: please use them (Venables Ripley explain the exact formulae used in R). On Tue, 9 Sep 2008, [EMAIL PROTECTED] wrote: For the command 'spectrum' I read: The spectrum here is defined with scaling 1/frequency(x), following S-PLUS. This makes the