Learn R Programming

REMixed (version 1.1.2)

model.pk: Generate trajectory of PK model

Description

The administration is via a bolus. The PK model has one compartment (volume V) and a linear elimination (clearance Cl). The parameter ka is defined as \( ka=\frac{Cl}{V}\).

Usage

model.pk(t, y, parms)

Value

Matrix of time and observation of Concentration C.

Arguments

t

vector of time ;

y

initial condition, named vector of form c(C=C0) ;

parms

named vector of model parameter ; should contain either "Cl" and "V" or "ka".

See Also

indParm.

Examples

Run this code
res <- model.pk(seq(0,30,1),c(C=100),parms=c(ka=1))

plot(res)

Run the code above in your browser using DataLab