Re: [R] fitting periodic 'sine wave' model

2008-06-10 Thread Gabor Grothendieck
Try RSiteSearch(fit a sine) On Tue, Jun 10, 2008 at 10:25 AM, Jon Loehrke [EMAIL PROTECTED] wrote: I have been attempting to estimate the periodic contribution of an effect to some data but have not been able to fit a sine wave within R. It would be nice to start by being able to fit a sine

[R] fitting periodic 'sine wave' model

2008-06-10 Thread Jon Loehrke
I have been attempting to estimate the periodic contribution of an effect to some data but have not been able to fit a sine wave within R. It would be nice to start by being able to fit a sine wave with an amplitude and frequency. x-seq(0,20,by=0.5) y-2*sin(2*pi*.5*x) #amplitude =2,

Re: [R] fitting periodic 'sine wave' model

2008-06-10 Thread Charilaos Skiadas
In addition to Gabor's suggestion, note the following warning from ?nls Warning Do not use nls on artificial zero-residual data. The nls function uses a relative-offset convergence criterion that compares the numerical imprecision at the current parameter estimates to the residual

Re: [R] fitting periodic 'sine wave' model

2008-06-10 Thread Søren Højsgaard
Fra: [EMAIL PROTECTED] på vegne af Jon Loehrke Sendt: ti 10-06-2008 16:25 Til: r-help@r-project.org Emne: [R] fitting periodic 'sine wave' model I have been attempting to estimate the periodic contribution of an effect to some data but have not been able to fit a sine wave within R. It would