[R] Fitting a sine wave using solver
baptiste auguie
ba208 at exeter.ac.uk
Fri Nov 21 00:06:05 CET 2008
Just a thought on this topic, I found Harminv quite powerful for this
sort of task. I wonder whether it could be wrapped into a R package
(it's GPL).
http://ab-initio.mit.edu/wiki/index.php/Harminv
On 20 Nov 2008, at 22:46, Prof Brian Ripley wrote:
> See e.g.
>
> http://finzi.psych.upenn.edu/R/Rhelp02a/archive/131024.html
>
> RSiteSearch() produced this and similar relevant past postings.
>
> On Thu, 20 Nov 2008, Ben Zuckerberg wrote:
>
>> 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
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
_____________________________
Baptiste Auguié
School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK
Phone: +44 1392 264187
http://newton.ex.ac.uk/research/emag
More information about the R-help
mailing list