Re: [R] Solution to differential equation for nls function

2010-06-30 Thread Ravi Varadhan
t;) lines(t, y2, col=2) lines(t, y3, col=3) lines(t, y4, col=4) Hope this helps, Ravi. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of mahesh samtani Sent: Wednesday, June 30, 2010 10:44 AM To: r-help@r-project.org Subject: [R] Solution

[R] Solution to differential equation for nls function

2010-06-30 Thread mahesh samtani
Hello, I am trying to find the analytical solution to this differential equation dR/dt = k1*R (1-(R/Rmax)^k2); R(0) = Ro k1, k2, and Rmax are parameters that need to fitted, while Ro is the baseline value (which can be fitted or fixed). The response (R) increases initially at an exponential rate