Learn R Programming

vpc (version 1.2.2)

pk_oral_1cmt: Simulate PK data from a 1-compartment oral model

Description

Simulate PK data from a 1-compartment oral model

Usage

pk_oral_1cmt(t, tau = 24, dose = 120, ka = 1, ke = 1, cl = 10, ruv = NULL)

Arguments

t

Time after dose

tau

Dosing interval

dose

Dose

ka

Absorption rate

ke

Elimination rate

cl

Clearance

ruv

Residual variability

Value

A vector of predicted values, with or without added residual variability

Examples

Run this code
# NOT RUN {
dat1 <- vpc:::pk_oral_1cmt(t = c(0:72), tau = 24, dose = 120, 
                     ka = 1, ke = 1, cl = 10)
dat2 <- vpc:::pk_oral_1cmt(t = c(0:72), tau = 24, dose = 120, 
                     ka = 1, ke = 1, cl = 10, 
                     ruv = list(proportional = 0.1, additive = 0.1))
# }

Run the code above in your browser using DataLab