calc_amts_for_conc: Calculate the amounts in all compartments in a compartmental...

Description Usage Arguments Examples

View source: R/calc_amts_for_conc.R

Description

Calculate the amounts in all compartments in a compartmental PK system based on a given concentration in the central compartment, and assuming steady state.

Usage

1
calc_amts_for_conc(conc = 10, parameters = NULL, n_cmt = 1)

Arguments

conc

concentration in central compartment

parameters

for PK model

n_cmt

number of compartments

Examples

1
2
3
4
5
6
7
8
9
calc_amts_for_conc(conc = 10, parameters = list(CL = 5, V = 50), n_cmt = 1)
calc_amts_for_conc(
  conc = 10,
  parameters = list(CL = 5, V = 50, Q = 20, V2 = 100),
  n_cmt = 2)
calc_amts_for_conc(
  conc = 10,
  parameters = list(CL = 5, V = 50, Q = 20, V2 = 100, Q2 = 30, V3 = 200),
  n_cmt = 3)

Example output

[1] 500
[1]  500 1000
[1]  500 1000 2000

clinPK documentation built on May 2, 2019, 9:04 a.m.