[R] differential equations

Jesus Maria Frias Celayeta iosu at bureau.ucc.ie
Thu Jul 27 01:59:02 CEST 2000

Hi Heberto!
    I think there is not a solver for differential equations still in R.However
don't give up that easy:

    -you can write your models using your favourite ode solver library (limited
C or Fortran) and then dyn.load() the model, so you can use it inside R. It is
not too difficult, and if you are used to a certain library where you have your
models, is probably the easiest way.

    -there is a preliminar porting to R of the nls2 library, which is a library
that makes nonlinear regression from differential equation models. It is a bit
difficult to install, and is also not easygoing, but the nonlinear regression
works well.  In that library there is a way to actually compile a differential
equation model and integrate it using the  lsode routine from ODEPACK.  So if
you want to see how to plug a ode solver with R in a more general way you can
start having a look at it in




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