Hi Camila, I had this same issue some time ago and, given that in my dataset all Interdose Intervals (II) were constant for all the patients, I used the following R function to get a TAD column (IDV in my dataset):
InsertIDV<-function(runn,ii){ # runn is the run number: for run03 runn="03"; ii is the inter-dose interval sdtab<-get(paste("sdtab",runn,sep="")) last<-floor(sdtab$TIME/ii)*ii # defines time at which last dose was administrated sdtab$IDV<-sdtab$TIME-last assign(paste("sdtab",runn,sep=""),sdtab,envir = .GlobalEnv) } I hope this script is useful for your problem. Regards, Alejandro Pérez Pitarch Pharmacy Department University Clinical Hospital of Valencia 2016-12-20 12:45 GMT+01:00 de Almeida, Camila < camila.dealme...@astrazeneca.com>: > Hello, > > > > I was wondering if I could get some guidance from this great group. My > issue is primarily with some diagnostic analysis, but this is taking me > back to an old NONMEM problem. > > > > My aim is to run a VPC on a model I implemented, and if possible change > the idv to TAD instead of TIME. The reason for that is the VPC graph based > on TIME looks dreadful as the data is sparse and from different studies of > different lengths. > > > > I’m having issues generating the TAD output column from my NONMEM run. I > naively assumed I could easily do that, but looking at the NONMEM archives > it seems this gets tricky when your dosing events are written using ADDL. > Has anyone ever managed to find a solution for this? And if not, is there > an alternative way to run the VCP on TAD, do we really need to get this > column from NONMEM’s output? > > > > Thanks all, > > > > *Camila de Almeida, PhD* > > PKPD Scientist, > > *Modelling & Simulation, IMED Oncology DMPK* > > > *________________________________________________________________________________* > > *AstraZeneca UK Limited* > > *R&D, Innovative Medicines* > > > > P Please consider the environment before printing this e-mail > > > > > > > > > > > > > > > > > ------------------------------ > > AstraZeneca UK Limited is a company incorporated in England and Wales with > registered number:03674842 and its registered office at 1 Francis Crick > Avenue, Cambridge Biomedical Campus, Cambridge, CB2 0AA. > > This e-mail and its attachments are intended for the above named recipient > only and may contain confidential and privileged information. If they have > come to you in error, you must not copy or show them to anyone; instead, > please reply to this e-mail, highlighting the error to the sender and then > immediately delete the message. For information about how AstraZeneca UK > Limited and its affiliates may process information, personal data and > monitor communications, please see our privacy notice at > www.astrazeneca.com >