Re: [NMusers] Help with ODEs for a time varying clearance

2021-07-22 Thread Niurys.CS
Dear all, Thank you very much for clarifying my doubts and giving me some lights. I'm going to keep it in mind. Regards, Niurys MSc Niurys de Castro Suárez Assistant Professor of Pharmacometrics Assistant Research Pharmacy Department Institute of Pharmacy and Food, University of Havana Cuba El

Re: [NMusers] Help with ODEs for a time varying clearance

2021-07-22 Thread Simbarashe Peter Zvada
Thanks Niurys for revisiting this. It was discussed quite a lot before. Using T in $DES, as Paolo suggested, is what I always do. As far as your code / model file is concerned, I somehow like it as long as you will be able to explain in simpler terms to non-pharmacometricians and Physicians what

Re: [NMusers] Help with ODEs for a time varying clearance

2021-07-22 Thread Leonid Gibiansky
PK block is executed only once per record so CL(TIME) is constant between records, while in the DES block T (time) changes continuously, thus implementing time dependence CL(T) exactly rather than approximately. The rest is fine. Thanks Leonid On 7/22/2021 4:19 PM, Niurys.CS wrote: Dear

Re: [NMusers] Help with ODEs for a time varying clearance

2021-07-22 Thread Paolo Denti
Dear Niurys, I have not checked the whole code, but something I spotted as incorrect is the use of TIME. The variable TIME only changes in a discrete way with the time of events in the dataset (e.g. doses or samples). If you want something truly "continuous" you need to use the variable T and

Re: [NMusers] Help with ODEs for a time varying clearance

2021-07-22 Thread Niurys.CS
Dear Leonid, Thanks for yor suggestion. I've never thought in that possibility. However, I have two questions: 1-Why must I write those equations inside $DES? 2-Do you think the ODE that I proposed are Ok? Thank you very much MSc Niurys de Castro Suárez Assistant Professor of Pharmacometrics

Re: [NMusers] Help with ODEs for a time varying clearance

2021-07-22 Thread Leonid Gibiansky
Definition of CL should be moved inside the DES block; other than that, looks fine: ; DES -- $DES CL2_TIME = CL2*EXP(-KDES*T) CL_TOTAL = CL2_TIME + CL1 ; total clearance ... Thanks Leonid On 7/22/2021 3:30 PM, Niurys.CS wrote: Dear nmusers, I'm working on the pharmacokinetics of an