get2ComptModelCurve: provides solution of two compartmental pharmacodynamic model...

Description Usage Arguments Value Examples

View source: R/pkFunctions.R

Description

provides solution of two compartmental pharmacodynamic model at specified time points

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  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 )  

microsamplingDesign documentation built on Oct. 13, 2021, 5:10 p.m.