Learn R Programming

tci (version 0.2.0)

init_poppkmod: Initialize a `poppkmod` object.

Description

Generate a `poppkmod` object from an existing population PK model for propofol or remifentanil using patient covariates. Available models for propofol are the Marsh, Schnider, and Eleveld models. Available models for remifentanil are the Minto, Kim, and Eleveld models. Input is a data frame with rows corresponding to individuals and columns recording patient covariates.

Usage

init_poppkmod(data = NULL, drug = NULL, model = NULL, sample = NULL, PD = NULL)

Value

`poppkmod` object

Arguments

data

Data frame of patient covariates. ID values, if used, should be in a column labeled "id" or "ID"

drug

"ppf" for propofol or "remi" for remifentanil. Defaults to "ppf".

model

Model name. Options are "marsh", "schnider", or "eleveld" if drug = "ppf", or "minto", "kim", or "eleveld" if drug = "remi".

sample

Logical. Should parameter values be sampled from interindividual distribution (TRUE) or evaluated at point estimates for covariates (FALSE)? Defaults to FALSE.

PD

Should the PD component be evaluated for PK-PD models. Defaults to TRUE.

Examples

Run this code
data <- data.frame(ID = 1:5, AGE = seq(20,60,by=10), TBW = seq(60,80,by=5),
HGT = seq(150,190,by=10), MALE = c(TRUE,TRUE,FALSE,FALSE,FALSE))
init_poppkmod(data, drug = "ppf", model = "eleveld")
init_poppkmod(data, drug = "remi", model = "kim")

Run the code above in your browser using DataLab