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

pk_iv_1cmtR Documentation

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

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))

ronkeizer/vpc documentation built on May 11, 2023, 11:09 p.m.