I had the same question about 6 months ago, and about 2 years ago before
that, and am in essentially the same boat.  My feeling is that if it was
easy, there would have been an example of doing it somewhere in the
documentation. I'm waiting for one of the package maintainers to make such
an example. In the mean time, I'm ditching delay equations and going with
higher order ODEs instead.

Tom Radivoyevitch

On Tue, Mar 19, 2013 at 9:59 AM, Li, Zhihua * <Zhihua.Li@fda.hhs.gov> wrote:

> Hi all
>
> I posted the following message a few days ago when I wasn't a member of
> the list.  There seems some problem with the post because I couldn't see
> the content of my own post online and other people's posts were under my
> empty thread.
> So I guess I'll post it again. Hope  this doesn't count as double posting
> ... ...
>
> The documentation of deSolve has excellent examples of writing ODEs in
> compiled code, but currently delay ODEs are only solvable using pure R
> model function (calling C function getLagValue).
> I searched the mailing list and did find some discussion pointing to the
> source code deSolve/src/lags.c. But not being a c programmer, it's hard for
> me
> to implement getLagValue and getLagDeriv in my own code.  I was wondering
> if someone can give a simple example where getLagValue is somehow called
> within DLL function.
>
> Thanks a lot!
>
> Zhihua Li
>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-dynamic-models mailing list
> R-sig-dynamic-models@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-dynamic-models
>



-- 
Tomas Radivoyevitch
Assistant Professor
Epidemiology and Biostatistics
Case Western Reserve University
Cleveland, OH 44106
Tel: 216-368-1965

	[[alternative HTML version deleted]]

