Hello all. This is likely to be a silly question, but I have a set of data points and I want to fit a curve to it, like this: http://www.igc.usp.br/pessoais/guano/temp/curve.png. which function should I use? many thanks Carlos -- +-----------------------------------------------------------+ Carlos Henrique Grohmann - Guano Geologist M.Sc - Doctorate Student at IGc-USP - Brazil Linux User #89721 - carlos dot grohmann at gmail dot com +-----------------------------------------------------------+ _________________ "Good morning, doctors. I have taken the liberty of removing Windows 95 from my hard drive." --The winning entry in a "What were HAL's first words" contest judged by 2001: A SPACE ODYSSEY creator Arthur C. Clarke Can't stop the signal.
On 7/10/2008, at 2:53 PM, Carlos Gu?no Grohmann wrote:> Hello all. This is likely to be a silly question, but I have a set of > data points and I want to fit a curve to it, like this: > http://www.igc.usp.br/pessoais/guano/temp/curve.png. > > which function should I use?Have a look at smooth.spline() and loess(). cheers, Rolf Turner ###################################################################### Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. This e-mail has been scanned and cleared by MailMarshal www.marshalsoftware.com ######################################################################
<carlos.grohmann <at> gmail.com> writes:> > Hello all. This is likely to be a silly question, but I have a set of > data points and I want to fit a curve to it, like this: > http://www.igc.usp.br/pessoais/guano/temp/curve.pngWhile you could use a loess-curve, interpreting the rising branch a the end is probably close to cheating. I would simply guess that this is an exp(-t/t0) curve with a few outliers. You should really have good reasons with so few datapoints in the upward branch. Dieter