print.sim_tci {tci} | R Documentation |
Print method for sim_tci class
Description
Print object with class "sim_tci" created by 'simulate_tci()'.
Usage
## S3 method for class 'sim_tci'
print(x, ...)
Arguments
x |
Object with class "sim_tci" created by 'simulate_tci()' |
... |
Other arguments. Not currently used. |
Value
Prints a description of the simulation.
Examples
data <- data.frame(ID = 1:3, AGE = c(20,30,40), TBW = c(60,70,80),
HGT = c(150,160,170), MALE = c(TRUE,FALSE,TRUE))
pkmod_prior <- poppkmod(data, drug = "ppf", model = "eleveld")
pkmod_true <- poppkmod(data, drug = "ppf", model = "eleveld", sample = TRUE)
obs_tms <- seq(1/6,10,1/6)
target_vals = c(75,60,50,50)
target_tms = c(0,3,6,10)
# open-loop simulation (without update_tms)
sim_ol <- simulate_tci(pkmod_prior, pkmod_true, target_vals, target_tms, obs_tms,
seed = 200)
# closed-loop simulation (with update_tms)
## Not run:
sim_cl <- simulate_tci(pkmod_prior, pkmod_true, target_vals, target_tms, obs_tms,
update_tms = c(2,4,6,8), seed = 200)
## End(Not run)
[Package tci version 0.2.0 Index]