Learn R Programming

vpc (version 1.1.0)

pk_iv_1cmt: Simulate PK data from a 1-compartment iv model

Description

Simulate PK data from a 1-compartment iv model

Usage

pk_iv_1cmt(t, t_inf = 1, tau = 24, dose = 120, CL = 0.345, Vc = 1.75,
  ruv = NULL)

Arguments

t

Time after dose

t_inf

Infusion length

tau

Dosing interval

dose

Dose

CL

Clearance

Vc

Volume of distribution

ruv

Residual variability

Value

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

Examples

Run this code
# NOT RUN {
dat1 <- vpc:::pk_iv_1cmt(t = c(0:72), tau = 24, dose = 120, 
                   CL = 5, Vc = 50)
dat2 <- vpc:::pk_iv_1cmt(t = c(0:72), tau = 24, dose = 120, 
                   CL = 5, Vc = 50, 
                   ruv = list(proportional = 0.1, additive = 0.1))
# }

Run the code above in your browser using DataLab