Dear Andre,
some people would be happy to assist you, but your code fragment is
incomplete, so diagnosing your problem was impossible. Please read the
posting guide and provide a minimum reproducible example.
Furthermore I wonder why you use dede and not ode, and why sum() with
empty parenthesis (that returns always zero).
Thomas Petzoldt
Am 10/15/2015 um 8:17 PM schrieb Andre Jackson:> I have the following differential equations and return list:
>
> dCgd.dt = -kad*y[1]-kgd*y[1] # PK model equation gut d
>
> dCld.dt= kad*y[1]-rhyd-rmetd #pk model equation liver d
>
> dCgl.dt = -kal*y2[1]-kgl*y2[1] # PK model equation gut l
>
> dCll.dt= kal*y2[1]-rhyl-rmetl #pk model equation liver l
>
>
>
> # PK model equation
>
> return(list(c(dCgd.dt,dCld.dt,dCgl.dt,dCll.dt),c(massbalance=sum())))
>
> }
>
>
>
> For the DDE solve I have :
>
> out = dede(y=y0,times=times,func=model.LIDR,parms=parms)
>
>
>
> This gives me the following error:
>
> Error in func(time, state, parms, ...) : object 'p' not found
>
>
>
> Can someone explain this error and its remedy?
>
> Andre Jackson
>
> Jacksonan1945 at gmail.com
>
> "You must be the change you wish the world to be"
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>