RE: [R] Moving standard deviation?

2004-12-14 Thread Martin Maechler
bogdan == bogdan romocea [EMAIL PROTECTED] on Mon, 13 Dec 2004 12:26:46 -0800 (PST) writes: bogdan A simple for loop does the job. Why not write your own function? movsd - function(series,lag) { movingsd - vector(mode=numeric) for (i in lag:length(series))

Re: [R] Moving standard deviation?

2004-12-13 Thread Spencer Graves
A search for moving standard deviation at www.r-project.org - search - R site search just produced 7 matches. Please look at those and let us know if none of those help you (and what you tried that didn't work). spencer graves doktora v wrote: Is there a simple function in R to get

RE: [R] Moving standard deviation?

2004-12-13 Thread bogdan romocea
(much) less time to write from scratch than to look for an existing function. HTH, b. -Original Message- From: doktora v Sent: Monday, December 13, 2004 1:46 PM Cc: [EMAIL PROTECTED] Subject: Re: [R] Moving standard deviation? I have tried there but didn't find anything useful. Most

Re: [R] Moving standard deviation?

2004-12-13 Thread doktora v
I have tried there but didn't find anything useful. Most of the matches are for functions which take a std dev input, and the moving part of the query relates to something else (like moving average in the qcc package). Anyway, it's not too difficult to create the function, but I was wondering if

Re: [R] Moving standard deviation?

2004-12-13 Thread Sundar Dorai-Raj
You could use ?running in the gtools package (part of the gregmisc bundle). --sundar doktora v wrote: I have tried there but didn't find anything useful. Most of the matches are for functions which take a std dev input, and the moving part of the query relates to something else (like moving

RE: [R] Moving standard deviation?

2004-12-13 Thread Mulholland, Tom
-Original Message- From: doktora v [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 December 2004 2:46 AM To: Spencer Graves Cc: [EMAIL PROTECTED] Subject: Re: [R] Moving standard deviation? I have tried there but didn't find anything useful. Most of the matches are for functions which take a std