RE: [R] power in a specific frequency band

2004-10-16 Thread Gabor Grothendieck
not return the half that is the same # by symmetry) sum(x*x) [1] 16 sum(sp$spec) [1] 8 Date: Fri, 15 Oct 2004 19:55:40 -0400 From: Giuseppe Pagnoni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [R] power in a specific frequency band Dear R users I have a really simple question

[R] power in a specific frequency band

2004-10-15 Thread Giuseppe Pagnoni
Dear R users I have a really simple question (hoping for a really simple answer :-): Having estimated the spectral density of a time series x (heart rate data) with: x.pgram - spectrum(x,method=pgram) I would like to compute the power in a specific energy band. Assuming that frequency(x)=4