Skip to content
Back to formatted view

Raw Message

Message-ID: <6.0.1.1.2.20040109163309.02c51010@pop.centroin.com.br>
Date: 2004-01-09T18:35:41Z
From: Bernardo Rangel Tura
Subject: Fit non-linear regressor

Hi R masters,

Sorry for first mensage, this is orignal text...

y<-c(2.8150,3.5239,4.0980,4.5845,5.0709,5.4824,5.8427,6.3214,6.7349,7.3651)
x<-c(37,42,47,52,57,62,67,72,77,82)

I need fit R and A in y=f(x)=R*exp(A*x), with minimize sd= sqrt(SRR/(n-2)) where SRR is Sum of the Square of the Residuals 
and n is number of data points (in this case 10)

How do I make this?


Thanks in advance

Bernardo Rangel Tura, MD, MSc
National Institute of Cardiology Laranjeiras
Rio de Janeiro Brazil