Fitting a sine wave using solver
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