[R] ODESOLVE

Timothy H. Keitt tklistaddr at keittlab.bio.sunysb.edu
Wed Jun 19 18:01:02 CEST 2002


I'm not really sure what you are asking. 'lsoda' passes the current time
step to your function. Can you use that to calculate the time-dependent
parameter? E.g.:

function(t, y, p) list(exp(-p[1]*t)*sin(p[2]*t)*y) ???

Tim




On Fri, 2002-06-14 at 03:51, In-Sun Nam wrote:
> Dear All,
> 
>  I am experiencing a difficulty with the "lsoda" function in ODESOLVE
>  library; my differentiation function contains a covariate changes with
> time,
>  and I don't know how to incorporate that without using loops and so on.
> Does
>  anyone know how to do it?
> 
>  Your help will be very much appreciated!!
> 
>  In-Sun
> 
>  In-Sun Nam
>  School of Pharmacy and Pharmaceutical Sciences
>  University of Manchester
>  Oxford Road
>  Manchester
>  M13 9PL
> 
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list