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
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,
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
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
4 matches
Mail list logo