RE: Time-varing covariate

From: Bill Denney Date: August 23, 2013 technical Source: mail-archive.com
Hi Siwei, If you are using an algebraic model (i.e. no differential equations), then you can simply include it in your equation: e.g. assuming that SBP is systolic blood pressure in your original data set: EFF=THETA(1)+SBP*THETA(2) If you have a differential equation model and you want the time varying covariate to have an effect that is not a step change, you will need to interpolate the covariate. Within your data set, you'll need a column for the next time and the next value of the time varying covariate. Using the same assumption that you have SBP in your data set as your time varying covariate, you will want to make two new columns to allow for interpolation: ID TIME NTIME SBP NSBP DV 1 0 1 110 115 5 1 1 2 115 112 3 1 2 4 112 108 4 Then to use your parameter, you will need code like the following in your $DES section to linearly interpolate: $DES ... ;; Current SBP CSBP = (NSBP - SBP)/(NTIME - TIME) * (T - TIME) + SBP ... The parameter T is the current time for the differential equation solver which will be somewhere between TIME and NTIME. TIME is an important column name for NONMEM. Thanks, Bill
Quoted reply history
From: [email protected] [mailto:[email protected]] On Behalf Of siwei Dai Sent: Friday, August 23, 2013 12:01 PM To: [email protected] Subject: [NMusers] Time-varing covariate Hi, Dear NMusers: I want to add a time-varing covariate in my model. For example, blood pressure or blood flow as covariates. But I am not sure how to do it. I see some earlier threads to discuss it but they all use complicated methods. I am wondering if there are any new way to do it in NM 7.2? I see in the user guide that EVID=4 can indicate physiological change. Is this what I should use? Thank you very much for any suggestions. Best regards, Siwei
Aug 23, 2013 Siwei Dai Time-varing covariate
Aug 23, 2013 Nick Holford Re: Time-varing covariate
Aug 23, 2013 Bill Denney RE: Time-varing covariate
Aug 24, 2013 Mats Karlsson RE: Time-varing covariate
Aug 25, 2013 Unknown RE: Time-varing covariate
Aug 25, 2013 Mats Karlsson Re: Time-varing covariate
Aug 26, 2013 Johannes H. Proost Re: Time-varing covariate
Aug 26, 2013 Siwei Dai Re: Time-varing covariate
Aug 27, 2013 Mats Karlsson RE: Time-varing covariate
Aug 27, 2013 Alison Boeckmann Re: Time-varing covariate
Aug 28, 2013 Mats Karlsson RE: Time-varing covariate
Aug 28, 2013 Nick Holford Re: Time-varing covariate
Aug 28, 2013 Alison Boeckmann Re: Time-varing covariate