[R] Fitting a sine wave using solver

Dieter Menne dieter.menne at menne-biomed.de
Fri Nov 21 19:11:50 CET 2008


Ben Zuckerberg <bz73 <at> cornell.edu> writes:

> I have several sets of oscillation data and would like to estimate the 
> parameters of a sine function to each set (and hopefully automate 
> this). 

There is an example using lme (yes, LINEAR) fit on page 239 of 
Pinheiro/Bates Mixed Effects Book (ovarian cycle). If you do not
have the book at hand, have a look at library/nlme/scripts/ch05.r.

Dieter



More information about the R-help mailing list