IVInf {nlmeODE}R Documentation

Simulated PK data with a single IV infusion

Description

Simulated data of an intraveneous infusion study with a single IV infusion administered to twelve subjects and PK plasma concentration measurements at twelve time points pr. subject.

Usage

data(IVInf)

Format

This data frame contains the following columns:

Subject
An ordered factor identifying the subject
Time
A numeric vector giving the time since drug administration (hours)
Conc
A numeric vector giving the PK concentration in the plasma (mg/L)
Cmt
A numeric vector giving the dosing compartment
Dose
A numeric vector giving the dose amount (mg)
Rate
A numeric vector giving the rate of infusion (mg/hr)

Examples

data(IVInf)

onecompIV <- list(DiffEq=list(            
                    dy1dt = ~ -ke*y1),    
                  ObsEq=list(             
                    c1 = ~ y1/Vd),        
                  States=c("y1"),         
                  Parms=c("ke","Vd"),     
                  Init=list(0))
                  
IVInfModel <- nlmeODE(onecompIV,IVInf)

fit <- nlme(Conc ~ IVInfModel(ke,Vd,Time,Subject),
   data = IVInf, fixed=ke+Vd~1, random = pdDiag(ke~1), 
   start=c(ke=log(0.1),Vd=log(1.5)),
   control=list(msVerbose=TRUE,tolerance=1e-3,pnlsTol=1e-3,msTol=1e-3),
   verbose=TRUE)

plot(augPred(fit,level=0:1,length.out=300))

[Package Contents]