[R] Fitting a sine wave using solver

Ben Zuckerberg bz73 at cornell.edu
Thu Nov 20 23:37:43 CET 2008


Greetings,

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).  A colleague provided an excel sheet that uses solver to minimize 
the RSS after fitting the sine function to each data set, but this 
cumbersome and difficult to automate.  Is there a method in R for 
fitting a given sine function to a supplied data using maximum 
likelihood estimation (or minimizing the RSS).  Thanks in advance.

-- 
Benjamin Zuckerberg, Ph.D.
Post-doctoral Associate
Spatial Ecologist, Citizen Science
Cornell Laboratory of Ornithology
159 Sapsucker Woods Road
Ithaca, NY 14850 
Tele: 607-254-2174
Fax: 607-254-2111



More information about the R-help mailing list