Learn R Programming

tci (version 0.1.2)

eleveld_vcov: Generate variance-covariance matrix for Eleveld PK-PD model

Description

Generate the variance-covariance matrix for Eleveld PK-PD model for an observation via Monte Carlo sampling.

Usage

eleveld_vcov(
  dat,
  N = 1000,
  rates = TRUE,
  varnames = c("K10", "K12", "K21", "K13", "K31", "V1", "V2", "V3", "KE0", "CE50",
    "SIGMA")
)

Value

List of variance-covariance matrices with length equal to the number of rows in dat.

Arguments

dat

Data frame of observed patient covariates

N

Number of Monte Carlo samples

rates

Logical. Should rate constants be calculated

varnames

Column names of variables used to calculate variance-covariance matrix