{
  "_id": "6a0f67e2acfb0bcc41c5d90e",
  "Package": "tci",
  "Title": "Target Controlled Infusion (TCI)",
  "Version": "0.2.1",
  "Authors@R": "person(\"Ryan\", \"Jarrett\", email = \"ryantjarrett@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Implementation of target-controlled infusion algorithms\nfor compartmental pharmacokinetic and\npharmacokinetic-pharmacodynamic models. Jacobs (1990)\n<doi:10.1109/10.43622>; Marsh et al. (1991)\n<doi:10.1093/bja/67.1.41>; Shafer and Gregg (1993)\n<doi:10.1007/BF01070999>; Schnider et al. (1998)\n<doi:10.1097/00000542-199805000-00006>; Abuhelwa, Foster, and\nUpton (2015) <doi:10.1016/j.vascn.2015.03.004>; Eleveld et al.\n(2018) <doi:10.1016/j.bja.2018.01.018>.",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "URL": "https://github.com/jarretrt/tci",
  "BugReports": "https://github.com/jarretrt/tci/issues",
  "SystemRequirements": "C++17",
  "RoxygenNote": "7.1.1",
  "NeedsCompilation": "yes",
  "VignetteBuilder": "knitr",
  "Packaged": {
    "Date": "2026-05-21 09:27:49 UTC",
    "User": "root"
  },
  "Author": "Ryan Jarrett [aut, cre]",
  "Maintainer": "Ryan Jarrett <ryantjarrett@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-09-27 20:20:02 UTC",
  "RemoteUrl": "https://github.com/cran/tci",
  "RemoteRef": "HEAD",
  "RemoteSha": "1912670a9eed5d5a954596ce4f1022b90d8d3269",
  "MD5sum": "841bbdd15bfe11aadb07e2c3869129e7",
  "_user": "cran",
  "_type": "src",
  "_file": "tci_0.2.1.tar.gz",
  "_fileid": "0589821016b0094d9c1fd2dbc38a5abca621ee6dcb52cc59f035c81d606e7766",
  "_filesize": 1445335,
  "_sha256": "0589821016b0094d9c1fd2dbc38a5abca621ee6dcb52cc59f035c81d606e7766",
  "_created": "2026-05-21T09:27:49.000Z",
  "_published": "2026-05-21T20:15:30.624Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77260006227,
      "time": 195,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7132194221"
    },
    {
      "job": 77260006506,
      "time": 179,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7132188675"
    },
    {
      "job": 77260006415,
      "time": 176,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132186960"
    },
    {
      "job": 77260006511,
      "time": 182,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132189953"
    },
    {
      "job": 77260006064,
      "time": 257,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132123853"
    },
    {
      "job": 77260005783,
      "time": 144,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7146191558"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26217387231",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/tci",
  "_commit": {
    "id": "1912670a9eed5d5a954596ce4f1022b90d8d3269",
    "author": "Ryan Jarrett <ryantjarrett@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.1\n",
    "time": 1759004402
  },
  "_maintainer": {
    "name": "Ryan Jarrett",
    "email": "ryantjarrett@gmail.com",
    "login": "jarretrt",
    "description": "",
    "uuid": 8387302
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "reshape",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "mrgsolve",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "reshape2",
      "role": "Suggests"
    },
    {
      "package": "truncnorm",
      "role": "Suggests"
    },
    {
      "package": "xtable",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-39",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.2.1",
      "date": "2025-09-27"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jarretrt",
      "count": 2,
      "uuid": 8387302
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 210,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tci"
  },
  "_devurl": "https://github.com/jarretrt/tci",
  "_searchresults": 10,
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tci.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jarretrt/tci",
  "_realowner": "jarretrt",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-02-26"
    },
    {
      "version": "0.1.1",
      "date": "2021-08-15"
    },
    {
      "version": "0.1.2",
      "date": "2021-11-04"
    },
    {
      "version": "0.2.0",
      "date": "2022-08-15"
    },
    {
      "version": "0.2.1",
      "date": "2025-09-27"
    }
  ],
  "_exports": [
    "apply_tci",
    "assign_pars",
    "bayes_update",
    "clc",
    "elvdlpars",
    "emax",
    "emax_eleveld",
    "emax_inv",
    "emax_inv_eleveld",
    "emax_inv_remi",
    "emax_remi",
    "format_pars",
    "inf_manual",
    "inf_tci",
    "infer_pkfn",
    "init_pkmod",
    "init_poppkmod",
    "list_parnms",
    "list_pkmods",
    "log_likelihood",
    "log_posterior_neg",
    "log_prior",
    "olc",
    "pkmod",
    "pkmod_eleveld_ppf",
    "pkmod_eleveld_remi",
    "pkmod_kim",
    "pkmod_marsh",
    "pkmod_minto",
    "pkmod_schnider",
    "pkmod1cpt",
    "pkmod2cpt",
    "pkmod3cpt",
    "pkmod3cptm",
    "poppkmod",
    "sample_iiv",
    "sample_pkmod",
    "simulate_clc",
    "simulate_olc",
    "simulate_tci",
    "tci_effect",
    "tci_effect_only",
    "tci_plasma",
    "validate_pkmod",
    "validate_poppkmod"
  ],
  "_datasets": [
    {
      "name": "eleveld_pd",
      "title": "Eleveld et al. pharmacodynamic data",
      "object": "eleveld_pd",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "E50",
        "KE0",
        "EMAX",
        "GAM",
        "GAM1",
        "RESD",
        "ALAG1",
        "AGE",
        "WGT",
        "HGT",
        "M1F2",
        "A1V2",
        "PMA",
        "TECH"
      ],
      "rows": 122,
      "table": true,
      "tojson": true
    },
    {
      "name": "eleveld_pk",
      "title": "Eleveld et al. pharmacokinetic data",
      "object": "eleveld_pk",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "V1",
        "V2",
        "V3",
        "CL",
        "Q2",
        "Q3",
        "AGE",
        "WGT",
        "HGT",
        "M1F2",
        "PMA",
        "TECH",
        "BMI",
        "FFM",
        "A1V2"
      ],
      "rows": 1033,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "apply_tci",
      "title": "Apply a TCI algorithm to a `pkmod` object",
      "topics": [
        "apply_tci"
      ]
    },
    {
      "page": "assign_pars",
      "title": "Set default PK parameter values Set default PK parameter values for a pkmod object.",
      "topics": [
        "assign_pars"
      ]
    },
    {
      "page": "bayes_update",
      "title": "Update PK-PD model parameters using observed data values",
      "topics": [
        "bayes_update"
      ]
    },
    {
      "page": "clc",
      "title": "Simulate closed-loop control",
      "topics": [
        "clc"
      ]
    },
    {
      "page": "eleveld_pd",
      "title": "Eleveld et al. pharmacodynamic data",
      "topics": [
        "eleveld_pd"
      ]
    },
    {
      "page": "eleveld_pk",
      "title": "Eleveld et al. pharmacokinetic data",
      "topics": [
        "eleveld_pk"
      ]
    },
    {
      "page": "elvdlpars",
      "title": "Get logged parameters updated in Eleveld model",
      "topics": [
        "elvdlpars"
      ]
    },
    {
      "page": "emax",
      "title": "Emax function",
      "topics": [
        "emax"
      ]
    },
    {
      "page": "emax_eleveld",
      "title": "Emax function for Eleveld (2018) model.",
      "topics": [
        "emax_eleveld"
      ]
    },
    {
      "page": "emax_inv",
      "title": "Inverse Emax function",
      "topics": [
        "emax_inv"
      ]
    },
    {
      "page": "emax_inv_eleveld",
      "title": "Inverse Emax function",
      "topics": [
        "emax_inv_eleveld"
      ]
    },
    {
      "page": "emax_inv_remi",
      "title": "Inverse Emax function implemented by Eleveld remifentanil model",
      "topics": [
        "emax_inv_remi"
      ]
    },
    {
      "page": "emax_remi",
      "title": "Emax function implemented by Eleveld remifentanil model",
      "topics": [
        "emax_remi"
      ]
    },
    {
      "page": "format_pars",
      "title": "Format parameters for use in Rcpp functions Order parameters for 1-4 compartment models to be used in Rcpp functions in predict_pkmod method.",
      "topics": [
        "format_pars"
      ]
    },
    {
      "page": "inf_manual",
      "title": "infusion schedule",
      "topics": [
        "inf_manual"
      ]
    },
    {
      "page": "inf_tci",
      "title": "Target-controlled infusion",
      "topics": [
        "inf_tci"
      ]
    },
    {
      "page": "infer_pkfn",
      "title": "Identify pkfn from parameter names",
      "topics": [
        "infer_pkfn"
      ]
    },
    {
      "page": "init_pkmod",
      "title": "Create an object with class \"pkmod\"",
      "topics": [
        "init_pkmod"
      ]
    },
    {
      "page": "init_poppkmod",
      "title": "Initialize a `poppkmod` object.",
      "topics": [
        "init_poppkmod"
      ]
    },
    {
      "page": "list_parnms",
      "title": "Identify pkfn from parameter names",
      "topics": [
        "list_parnms"
      ]
    },
    {
      "page": "list_pkmods",
      "title": "Print population PK models available in `tci`",
      "topics": [
        "list_pkmods"
      ]
    },
    {
      "page": "log_likelihood",
      "title": "Evaluate the log likelihood of a vector of parameter values",
      "topics": [
        "log_likelihood"
      ]
    },
    {
      "page": "log_posterior_neg",
      "title": "Evaluate the negative log posterior value of a parameter vector",
      "topics": [
        "log_posterior_neg"
      ]
    },
    {
      "page": "log_prior",
      "title": "Calculate logged-prior probability for a set of parameters",
      "topics": [
        "log_prior"
      ]
    },
    {
      "page": "olc",
      "title": "Simulate open-loop control",
      "topics": [
        "olc"
      ]
    },
    {
      "page": "pkmod",
      "title": "Create a pkmod object",
      "topics": [
        "pkmod"
      ]
    },
    {
      "page": "pkmod_eleveld_ppf",
      "title": "Eleveld population PK model for propofol",
      "topics": [
        "pkmod_eleveld_ppf"
      ]
    },
    {
      "page": "pkmod_eleveld_remi",
      "title": "Eleveld population PK model for remifentanil",
      "topics": [
        "pkmod_eleveld_remi"
      ]
    },
    {
      "page": "pkmod_kim",
      "title": "Kim population PK model for remifentanil",
      "topics": [
        "pkmod_kim"
      ]
    },
    {
      "page": "pkmod_marsh",
      "title": "-------------------------- Population PK and PK-PD functions --------------- -------------------------- Marsh population PK model for propofol",
      "topics": [
        "pkmod_marsh"
      ]
    },
    {
      "page": "pkmod_minto",
      "title": "Minto population PK model for remifentanil",
      "topics": [
        "pkmod_minto"
      ]
    },
    {
      "page": "pkmod_schnider",
      "title": "Schnider population PK model for propofol",
      "topics": [
        "pkmod_schnider"
      ]
    },
    {
      "page": "pkmod1cpt",
      "title": "One compartment IV infusion with first-order elimination.",
      "topics": [
        "pkmod1cpt"
      ]
    },
    {
      "page": "pkmod2cpt",
      "title": "Two compartment IV infusion with first-order elimination.",
      "topics": [
        "pkmod2cpt"
      ]
    },
    {
      "page": "pkmod3cpt",
      "title": "Three compartment IV infusion with first-order elimination.",
      "topics": [
        "pkmod3cpt"
      ]
    },
    {
      "page": "pkmod3cptm",
      "title": "Solution to three-compartment IV model with effect-site",
      "topics": [
        "pkmod3cptm"
      ]
    },
    {
      "page": "plot.sim_tci",
      "title": "Plot method for sim_tci class",
      "topics": [
        "plot.sim_tci"
      ]
    },
    {
      "page": "poppkmod",
      "title": "Implement a population pharmacokinetic/pharmacodynamic model.",
      "topics": [
        "poppkmod"
      ]
    },
    {
      "page": "predict.pkmod",
      "title": "Predict method for pkmod objects",
      "topics": [
        "predict.pkmod"
      ]
    },
    {
      "page": "predict.poppkmod",
      "title": "Predict method for pkmod objects",
      "topics": [
        "predict.poppkmod"
      ]
    },
    {
      "page": "print.pkmod",
      "title": "Print pkmod",
      "topics": [
        "print.pkmod"
      ]
    },
    {
      "page": "print.poppkmod",
      "title": "Print poppkmod",
      "topics": [
        "print.poppkmod"
      ]
    },
    {
      "page": "print.sim_tci",
      "title": "Print method for sim_tci class",
      "topics": [
        "print.sim_tci"
      ]
    },
    {
      "page": "sample_iiv",
      "title": "Sample PK or PK-PD parameters from the distribution of inter- or intra-individual variability",
      "topics": [
        "sample_iiv"
      ]
    },
    {
      "page": "sample_pkmod",
      "title": "Sample parameters from a `pkmod` object",
      "topics": [
        "sample_pkmod"
      ]
    },
    {
      "page": "simulate_clc",
      "title": "Simulate closed-loop control using Bayesian updates",
      "topics": [
        "simulate_clc"
      ]
    },
    {
      "page": "simulate_olc",
      "title": "Simulate open-loop control using TCI",
      "topics": [
        "simulate_olc"
      ]
    },
    {
      "page": "simulate_tci",
      "title": "Simulate open- or closed-loop control",
      "topics": [
        "simulate_tci"
      ]
    },
    {
      "page": "simulate.pkmod",
      "title": "Simulate method for pkmod objects",
      "topics": [
        "simulate.pkmod"
      ]
    },
    {
      "page": "simulate.poppkmod",
      "title": "Summary method for `poppkmod` objects",
      "topics": [
        "simulate.poppkmod"
      ]
    },
    {
      "page": "tci_documentation",
      "title": "tci_documentation",
      "topics": [
        "tci_documentation"
      ]
    },
    {
      "page": "tci_effect",
      "title": "Effect-site TCI algorithm with plasma targeting within small range of target",
      "topics": [
        "tci_effect"
      ]
    },
    {
      "page": "tci_effect_only",
      "title": "TCI algorithm for effect-site targeting",
      "topics": [
        "tci_effect_only"
      ]
    },
    {
      "page": "tci_plasma",
      "title": "TCI algorithm for plasma targeting",
      "topics": [
        "tci_plasma"
      ]
    },
    {
      "page": "update.pkmod",
      "title": "Update method for pkmod",
      "topics": [
        "update.pkmod"
      ]
    },
    {
      "page": "validate_pkmod",
      "title": "pkmod validation checks",
      "topics": [
        "validate_pkmod"
      ]
    },
    {
      "page": "validate_poppkmod",
      "title": "Perform validation checks on a `poppkmod` object",
      "topics": [
        "validate_poppkmod"
      ]
    }
  ],
  "_readme": "https://github.com/cran/tci/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "evaluate",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "isoband",
    "knitr",
    "labeling",
    "lifecycle",
    "mvtnorm",
    "plyr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "reshape",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "custom.Rmd",
      "filename": "custom.html",
      "title": "Custom PK models and TCI algorithms using the tci package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Custom PK models",
        "Custom TCI algorithms",
        "References"
      ],
      "created": "2022-08-15 07:50:02",
      "modified": "2022-08-15 07:50:02",
      "commits": 1
    },
    {
      "source": "overview.Rmd",
      "filename": "overview.html",
      "title": "Introduction to tci package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "pkmod and poppkmod object classes",
        "Examples",
        "Infusion schedules",
        "Predict and simulate methods",
        "Extensions to PK-PD models",
        "Open- and closed-loop control",
        "References"
      ],
      "created": "2021-02-26 08:30:02",
      "modified": "2022-08-15 07:50:02",
      "commits": 4
    },
    {
      "source": "poppk.Rmd",
      "filename": "poppk.html",
      "title": "Population PK models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "References"
      ],
      "created": "2022-08-15 07:50:02",
      "modified": "2022-08-15 07:50:02",
      "commits": 1
    }
  ],
  "_score": 3.1760912590556813,
  "_indexed": false,
  "_nocasepkg": "tci",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://jarretrt.r-universe.dev/tci",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-05-21T09:30:51.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "1912670a9eed5d5a954596ce4f1022b90d8d3269",
      "fileid": "b7dd35e151acb83e2523911566bd868a0ba148dd12b73b05e237ca39fe1145c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26217387231"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-05-21T09:30:30.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "1912670a9eed5d5a954596ce4f1022b90d8d3269",
      "fileid": "2e39b1a4b80a5485475c8b02235f720fe4321b8daa6722c25ebe3015c9218f85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26217387231"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-05-21T09:30:30.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "1912670a9eed5d5a954596ce4f1022b90d8d3269",
      "fileid": "2556cb56d18364de120faa2539dbfe38566eae9594000ef9c463696b9640651d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26217387231"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-05-21T09:30:29.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "1912670a9eed5d5a954596ce4f1022b90d8d3269",
      "fileid": "be0775d18108d9665a687ff2b0aee123f97da511517bd98c3aec9e641a5bcc33",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26217387231"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1",
      "date": "2026-05-21T20:14:59.000Z",
      "arch": "emscripten",
      "commit": "1912670a9eed5d5a954596ce4f1022b90d8d3269",
      "fileid": "3d9534f3c2cf2750389a7f2bf84997bf4a1055db96a57be8f176c956ebdbf54a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26217387231"
    }
  ]
}