Package: tci 0.2.0

Ryan Jarrett

tci: Target Controlled Infusion (TCI)

Implementation of target-controlled infusion algorithms for compartmental pharmacokinetic and pharmacokinetic-pharmacodynamic models. Jacobs (1990) <doi:10.1109/10.43622>; Marsh et al. (1991) <doi:10.1093/bja/67.1.41>; Shafer and Gregg (1993) <doi:10.1007/BF01070999>; Schnider et al. (1998) <doi:10.1097/00000542-199805000-00006>; Abuhelwa, Foster, and Upton (2015) <doi:10.1016/j.vascn.2015.03.004>; Eleveld et al. (2018) <doi:10.1016/j.bja.2018.01.018>.

Authors:Ryan Jarrett [aut, cre]

tci_0.2.0.tar.gz
tci_0.2.0.tar.gz(r-4.5-noble)tci_0.2.0.tar.gz(r-4.4-noble)
tci_0.2.0.tgz(r-4.4-emscripten)tci_0.2.0.tgz(r-4.3-emscripten)
tci.pdf |tci.html
tci/json (API)

# Install 'tci' in R:
install.packages('tci', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jarretrt/tci/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

cppopenmp

3.18 score 8 scripts 176 downloads 45 exports 44 dependencies

Last updated 2 years agofrom:a1af469d0d. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 23 2024
R-4.5-linux-x86_64NOTEDec 23 2024

Exports:apply_tciassign_parsbayes_updateclcelvdlparsemaxemax_eleveldemax_invemax_inv_eleveldemax_inv_remiemax_remiformat_parsinf_manualinf_tciinfer_pkfninit_pkmodinit_poppkmodlist_parnmslist_pkmodslog_likelihoodlog_posterior_neglog_priorolcpkmodpkmod_eleveld_ppfpkmod_eleveld_remipkmod_kimpkmod_marshpkmod_mintopkmod_schniderpkmod1cptpkmod2cptpkmod3cptpkmod3cptmpoppkmodsample_iivsample_pkmodsimulate_clcsimulate_olcsimulate_tcitci_effecttci_effect_onlytci_plasmavalidate_pkmodvalidate_poppkmod

Dependencies:clicolorspaceevaluatefansifarverggplot2gluegridExtragtablehighrisobandknitrlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellmvtnormnlmepillarpkgconfigplyrR6RColorBrewerRcppRcppArmadilloreshapereshape2rlangscalesstringistringrtibbletruncnormutf8vctrsviridisLitewithrxfunxtableyaml

Custom PK models and TCI algorithms using the tci package

Rendered fromcustom.Rmdusingknitr::rmarkdownon Dec 23 2024.

Last update: 2022-08-15
Started: 2022-08-15

Introduction to tci package

Rendered fromoverview.Rmdusingknitr::rmarkdownon Dec 23 2024.

Last update: 2022-08-15
Started: 2021-02-26

Population PK models

Rendered frompoppk.Rmdusingknitr::rmarkdownon Dec 23 2024.

Last update: 2022-08-15
Started: 2022-08-15

Readme and manuals

Help Manual

Help pageTopics
Apply a TCI algorithm to a `pkmod` objectapply_tci
Set default PK parameter values Set default PK parameter values for a pkmod object.assign_pars
Update PK-PD model parameters using observed data valuesbayes_update
Simulate closed-loop controlclc
Eleveld et al. pharmacodynamic dataeleveld_pd
Eleveld et al. pharmacokinetic dataeleveld_pk
Get logged parameters updated in Eleveld modelelvdlpars
Emax functionemax
Emax function for Eleveld (2018) model.emax_eleveld
Inverse Emax functionemax_inv
Inverse Emax functionemax_inv_eleveld
Inverse Emax function implemented by Eleveld remifentanil modelemax_inv_remi
Emax function implemented by Eleveld remifentanil modelemax_remi
Format parameters for use in Rcpp functions Order parameters for 1-4 compartment models to be used in Rcpp functions in predict_pkmod method.format_pars
infusion scheduleinf_manual
Target-controlled infusioninf_tci
Identify pkfn from parameter namesinfer_pkfn
Create an object with class "pkmod"init_pkmod
Initialize a `poppkmod` object.init_poppkmod
Identify pkfn from parameter nameslist_parnms
Print population PK models available in `tci`list_pkmods
Evaluate the log likelihood of a vector of parameter valueslog_likelihood
Evaluate the negative log posterior value of a parameter vectorlog_posterior_neg
Calculate logged-prior probability for a set of parameterslog_prior
Simulate open-loop contrololc
Create a pkmod objectpkmod
Eleveld population PK model for propofolpkmod_eleveld_ppf
Eleveld population PK model for remifentanilpkmod_eleveld_remi
Kim population PK model for remifentanilpkmod_kim
-------------------------- Population PK and PK-PD functions --------------- -------------------------- Marsh population PK model for propofolpkmod_marsh
Minto population PK model for remifentanilpkmod_minto
Schnider population PK model for propofolpkmod_schnider
One compartment IV infusion with first-order elimination.pkmod1cpt
Two compartment IV infusion with first-order elimination.pkmod2cpt
Three compartment IV infusion with first-order elimination.pkmod3cpt
Solution to three-compartment IV model with effect-sitepkmod3cptm
Plot method for sim_tci classplot.sim_tci
Implement a population pharmacokinetic/pharmacodynamic model.poppkmod
Predict method for pkmod objectspredict.pkmod
Predict method for pkmod objectspredict.poppkmod
Print pkmodprint.pkmod
Print poppkmodprint.poppkmod
Print method for sim_tci classprint.sim_tci
Sample PK or PK-PD parameters from the distribution of inter- or intra-individual variabilitysample_iiv
Sample parameters from a `pkmod` objectsample_pkmod
Simulate closed-loop control using Bayesian updatessimulate_clc
Simulate open-loop control using TCIsimulate_olc
Simulate open- or closed-loop controlsimulate_tci
Simulate method for pkmod objectssimulate.pkmod
Summary method for `poppkmod` objectssimulate.poppkmod
tci_documentationtci_documentation
Effect-site TCI algorithm with plasma targeting within small range of targettci_effect
TCI algorithm for effect-site targetingtci_effect_only
TCI algorithm for plasma targetingtci_plasma
Update method for pkmodupdate.pkmod
pkmod validation checksvalidate_pkmod
Perform validation checks on a `poppkmod` objectvalidate_poppkmod