[R] Non-linear regression

David Winsemius dwinsemius at comcast.net
Sun Feb 7 04:49:48 CET 2010


On Feb 6, 2010, at 10:33 PM, kupz wrote:

>
> So I have a data set I would like to model using a non-linear  
> method. I know
> it should be an exponential decay. However I know what the first  
> derivative
> of the equation should be at two points, x=0 and x=100. Is there  
> anyway to
> establish this when inputing the model or how would one go about  
> this before
> the nls statement....

Given the rather simple relationship between the exponential function  
and its derivative, why would you need the regression if you already  
have those two points for dy/dx ( as well as the value of the function  
at x=0)? Is this homework?

-- 

David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list