Learn R Programming

microsamplingDesign (version 1.0.8)

get2ComptModelCurve: provides solution of two compartmental pharmacodynamic model at specified time points

Description

provides solution of two compartmental pharmacodynamic model at specified time points

Usage

get2ComptModelCurve(parameters, time, dosingInfo,
  internalODEs = pkOdeModel2Compartments, returnAll = FALSE)

Arguments

parameters

a list with correclty named input parameters

time

a numeric vector of times

dosingInfo

a data.frame with 2 colunmns

  • time at which a dose is administered

  • dose the amount administred to the gut

internalODEs

the model function used defaults to pkOdeModel2Compartments

returnAll

logical indicator if TRUE the solutions of all response variables is returned as a data.frame if FALSE only the plasma concentration is returned as a vector, defaults to FALSE

Value

data.frame or numeric vector of solutions, depending on the value of returnAll

Examples

Run this code
# NOT RUN {
  pkModel               <-  getExamplePkModel()
  parameters            <-  getParameters( pkModel )
  testParameters        <-  parameters[ , "value"] 
  names(testParameters)  <-  parameters[ , "parameter"]
  time                  <-  seq( 0 , 3 , 0.1 )
  dosingInfo            <-  data.frame( time = c( 0 , 1 , 2) , 
       dose = c( 5 , 2 , 1.5 ) )
  get2ComptModelCurve( parameters = testParameters , time , dosingInfo )
  get2ComptModelCurve( parameters = testParameters, time ,
    dosingInfo , returnAll = TRUE )  
# }

Run the code above in your browser using DataLab