Skip to contents

The Data Exploration page's NCA (via the 'NonCompart' and 'ncar' packages, which need to be installed): one row of NCA parameters per subject (and group), optionally with the PDF report.

Usage

mvp_nca(
  data,
  subject = "ID",
  time = "TIME",
  conc = "DV",
  dose = "AMT",
  keys = NULL,
  route = c("Extravascular", "Bolus", "Infusion"),
  dur = 0,
  down = c("Linear", "Log"),
  dose_unit = "mg",
  time_unit = "h",
  conc_unit = "ug/L",
  mw = 0,
  report = NULL
)

Arguments

data

A data frame with one row per record, or the path of a .csv (or tab-delimited .txt) file. Dosing rows (EVID >= 1) are only used to find the doses. When there are several compartments, the most frequent one is used, as in the app.

subject, time, conc

Column names of the subject, time and concentration.

dose

Column with the dose (taken from each subject's first positive dosing record, or from the observation rows), or a single number for all subjects.

keys

Optional extra grouping column (e.g. a period or dose group).

route

"Extravascular", "Bolus" or "Infusion".

dur

Infusion duration.

down

AUC method: "Linear" or "Log" (linear-up log-down).

dose_unit, time_unit, conc_unit

Units, used for the units of the results.

mw

Molecular weight, needed for clearance and volume when the dose and concentration units differ in mass/mole (0 = not used).

report

Optional path of a PDF report to write (nothing is written by default).

Value

A data frame of NCA parameters (columns as in NonCompart::tblNCA()).

Examples

# \donttest{
if (requireNamespace("NonCompart", quietly = TRUE) && requireNamespace("ncar", quietly = TRUE)) {
  d <- data.frame(ID = rep(1:2, each = 6), TIME = rep(c(0.5, 1, 2, 4, 8, 12), 2),
                  DV = c(4, 6, 5, 3, 1.5, 0.7, 5, 7, 6, 3.5, 1.6, 0.8), AMT = 100)
  mvp_nca(d, dose = "AMT")
}
#>   ID       b0 CMAX CMAXD TMAX TLAG CLST     CLSTP TLST   LAMZHL      LAMZ
#> 1  1 1.837755    6  0.06    1    0  0.7 0.7080956   12 3.810366 0.1819109
#> 2  2 1.975781    7  0.07    1    0  0.8 0.7881405   12 3.757133 0.1844883
#>   LAMZLL LAMZUL LAMZNPT     CORRXY        R2     R2ADJ AUCLST AUCALL   AUCIFO
#> 1      4     12       3 -0.9996256 0.9992514 0.9985027  30.40  30.40 34.24804
#> 2      4     12       3 -0.9993861 0.9987727 0.9975453  35.25  35.25 39.58632
#>     AUCIFOD   AUCIFP   AUCIFPD   AUCPEO   AUCPEP AUMCLST  AUMCIFO  AUMCIFP
#> 1 0.3424804 34.29254 0.3429254 11.23579 11.35098   121.3 188.6299 189.4086
#> 2 0.3958632 39.52203 0.3952203 10.95408 10.80925   136.9 212.4404 211.3205
#>    AUMCPEO  AUMCPEP     VZFO     VZFP     CLFO     CLFP MRTEVLST MRTEVIFO
#> 1 35.69417 35.95854 16051.13 16030.30 2919.875 2916.086 3.990132 5.507757
#> 2 35.55839 35.21690 13692.60 13714.87 2526.125 2530.234 3.883688 5.366510
#>   MRTEVIFP
#> 1 5.523316
#> 2 5.346904
# }