Skip to contents

This data.frame is typically used for the units argument for PKNCAdata(). If a unit is not given, then all of the units derived from that unit will be NA.

Usage

pknca_units_table(
  concu,
  doseu,
  amountu,
  timeu,
  concu_pref = NULL,
  doseu_pref = NULL,
  amountu_pref = NULL,
  timeu_pref = NULL,
  conversions = data.frame()
)

Arguments

concu, doseu, amountu, timeu

Units for concentration, dose, amount, and time in the source data

concu_pref, doseu_pref, amountu_pref, timeu_pref

Preferred units for reporting; conversions will be automatically.

conversions

An optional data.frame with columns of c("PPORRESU", "PPSTRESU", "conversion_factor") for the original calculation units, the standardized units, and a conversion factor to multiply the initial value by to get a standardized value. This argument overrides any preferred unit conversions from concu_pref, doseu_pref, amountu_pref, or timeu_pref.

Value

A unit conversion table with columns for "PPTESTCD" and "PPORRESU" if conversions is not given, and adding "PPSTRESU" and "conversion_factor" if conversions is given.

See also

The units argument for PKNCAdata()

Examples

pknca_units_table() # only parameters that are unitless
#>     PPORRESU             PPTESTCD
#> 1   unitless            r.squared
#> 2   unitless        adj.r.squared
#> 3   fraction                    f
#> 4   fraction                  ptr
#> 5   fraction                   fe
#> 6   fraction           span.ratio
#> 7          %             deg.fluc
#> 8          %                swing
#> 9          %       aucivpbextlast
#> 10         %        aucivpbextall
#> 11         %   aucivpbextint.last
#> 12         %    aucivpbextint.all
#> 13         %    aucivpbextinf.obs
#> 14         %   aucivpbextinf.pred
#> 15         %          aucpext.obs
#> 16         %         aucpext.pred
#> 17     count           count_conc
#> 18     count        sparse_auc_df
#> 19     count    lambda.z.n.points
#> 20      <NA>                start
#> 21      <NA>                  end
#> 22      <NA>                 tmax
#> 23      <NA>                tlast
#> 24      <NA>               tfirst
#> 25      <NA>             mrt.last
#> 26      <NA>          mrt.iv.last
#> 27      <NA>                 tlag
#> 28      <NA>           time_above
#> 29      <NA>            half.life
#> 30      <NA>  lambda.z.time.first
#> 31      <NA>       thalf.eff.last
#> 32      <NA>    thalf.eff.iv.last
#> 33      <NA>              mrt.obs
#> 34      <NA>             mrt.pred
#> 35      <NA>           mrt.iv.obs
#> 36      <NA>          mrt.iv.pred
#> 37      <NA>           mrt.md.obs
#> 38      <NA>          mrt.md.pred
#> 39      <NA>        thalf.eff.obs
#> 40      <NA>       thalf.eff.pred
#> 41      <NA>     thalf.eff.iv.obs
#> 42      <NA>    thalf.eff.iv.pred
#> 43      <NA>             lambda.z
#> 44      <NA>             kel.last
#> 45      <NA>          kel.iv.last
#> 46      <NA>              kel.obs
#> 47      <NA>             kel.pred
#> 48      <NA>           kel.iv.obs
#> 49      <NA>          kel.iv.pred
#> 50      <NA>                   c0
#> 51      <NA>                 cmax
#> 52      <NA>                 cmin
#> 53      <NA>            clast.obs
#> 54      <NA>                  cav
#> 55      <NA>         cav.int.last
#> 56      <NA>          cav.int.all
#> 57      <NA>              ctrough
#> 58      <NA>               cstart
#> 59      <NA>                 ceoi
#> 60      <NA>           clast.pred
#> 61      <NA>      cav.int.inf.obs
#> 62      <NA>     cav.int.inf.pred
#> 63      <NA>                   ae
#> 64      <NA>              totdose
#> 65      <NA>              cmax.dn
#> 66      <NA>              cmin.dn
#> 67      <NA>         clast.obs.dn
#> 68      <NA>        clast.pred.dn
#> 69      <NA>               cav.dn
#> 70      <NA>           ctrough.dn
#> 71      <NA>             vss.last
#> 72      <NA>          vss.iv.last
#> 73      <NA>               vz.obs
#> 74      <NA>              vz.pred
#> 75      <NA>              vss.obs
#> 76      <NA>             vss.pred
#> 77      <NA>           vss.iv.obs
#> 78      <NA>          vss.iv.pred
#> 79      <NA>           vss.md.obs
#> 80      <NA>          vss.md.pred
#> 81      <NA>              auclast
#> 82      <NA>               aucall
#> 83      <NA>          aucint.last
#> 84      <NA>     aucint.last.dose
#> 85      <NA>           aucint.all
#> 86      <NA>      aucint.all.dose
#> 87      <NA> aucabove.predose.all
#> 88      <NA>  aucabove.trough.all
#> 89      <NA>       sparse_auclast
#> 90      <NA>        sparse_auc_se
#> 91      <NA>            aucivlast
#> 92      <NA>             aucivall
#> 93      <NA>        aucivint.last
#> 94      <NA>         aucivint.all
#> 95      <NA>           aucinf.obs
#> 96      <NA>          aucinf.pred
#> 97      <NA>       aucint.inf.obs
#> 98      <NA>  aucint.inf.obs.dose
#> 99      <NA>      aucint.inf.pred
#> 100     <NA> aucint.inf.pred.dose
#> 101     <NA>         aucivinf.obs
#> 102     <NA>        aucivinf.pred
#> 103     <NA>             aumclast
#> 104     <NA>              aumcall
#> 105     <NA>          aumcinf.obs
#> 106     <NA>         aumcinf.pred
#> 107     <NA>           auclast.dn
#> 108     <NA>            aucall.dn
#> 109     <NA>        aucinf.obs.dn
#> 110     <NA>       aucinf.pred.dn
#> 111     <NA>          aumclast.dn
#> 112     <NA>           aumcall.dn
#> 113     <NA>       aumcinf.obs.dn
#> 114     <NA>      aumcinf.pred.dn
#> 115     <NA>              cl.last
#> 116     <NA>               cl.all
#> 117     <NA>               cl.obs
#> 118     <NA>              cl.pred
#> 119     <NA>             clr.last
#> 120     <NA>              clr.obs
#> 121     <NA>             clr.pred
pknca_units_table(
  concu="ng/mL", doseu="mg/kg", amountu="mg", timeu="hr"
)
#>                 PPORRESU             PPTESTCD
#> 1               unitless            r.squared
#> 2               unitless        adj.r.squared
#> 3               fraction                    f
#> 4               fraction                  ptr
#> 5               fraction                   fe
#> 6               fraction           span.ratio
#> 7                      %             deg.fluc
#> 8                      %                swing
#> 9                      %       aucivpbextlast
#> 10                     %        aucivpbextall
#> 11                     %   aucivpbextint.last
#> 12                     %    aucivpbextint.all
#> 13                     %    aucivpbextinf.obs
#> 14                     %   aucivpbextinf.pred
#> 15                     %          aucpext.obs
#> 16                     %         aucpext.pred
#> 17                 count           count_conc
#> 18                 count        sparse_auc_df
#> 19                 count    lambda.z.n.points
#> 20                    hr                start
#> 21                    hr                  end
#> 22                    hr                 tmax
#> 23                    hr                tlast
#> 24                    hr               tfirst
#> 25                    hr             mrt.last
#> 26                    hr          mrt.iv.last
#> 27                    hr                 tlag
#> 28                    hr           time_above
#> 29                    hr            half.life
#> 30                    hr  lambda.z.time.first
#> 31                    hr       thalf.eff.last
#> 32                    hr    thalf.eff.iv.last
#> 33                    hr              mrt.obs
#> 34                    hr             mrt.pred
#> 35                    hr           mrt.iv.obs
#> 36                    hr          mrt.iv.pred
#> 37                    hr           mrt.md.obs
#> 38                    hr          mrt.md.pred
#> 39                    hr        thalf.eff.obs
#> 40                    hr       thalf.eff.pred
#> 41                    hr     thalf.eff.iv.obs
#> 42                    hr    thalf.eff.iv.pred
#> 43                  1/hr             lambda.z
#> 44                  1/hr             kel.last
#> 45                  1/hr          kel.iv.last
#> 46                  1/hr              kel.obs
#> 47                  1/hr             kel.pred
#> 48                  1/hr           kel.iv.obs
#> 49                  1/hr          kel.iv.pred
#> 50                 ng/mL                   c0
#> 51                 ng/mL                 cmax
#> 52                 ng/mL                 cmin
#> 53                 ng/mL            clast.obs
#> 54                 ng/mL                  cav
#> 55                 ng/mL         cav.int.last
#> 56                 ng/mL          cav.int.all
#> 57                 ng/mL              ctrough
#> 58                 ng/mL               cstart
#> 59                 ng/mL                 ceoi
#> 60                 ng/mL           clast.pred
#> 61                 ng/mL      cav.int.inf.obs
#> 62                 ng/mL     cav.int.inf.pred
#> 63                    mg                   ae
#> 64                 mg/kg              totdose
#> 65       (ng/mL)/(mg/kg)              cmax.dn
#> 66       (ng/mL)/(mg/kg)              cmin.dn
#> 67       (ng/mL)/(mg/kg)         clast.obs.dn
#> 68       (ng/mL)/(mg/kg)        clast.pred.dn
#> 69       (ng/mL)/(mg/kg)               cav.dn
#> 70       (ng/mL)/(mg/kg)           ctrough.dn
#> 71       (mg/kg)/(ng/mL)             vss.last
#> 72       (mg/kg)/(ng/mL)          vss.iv.last
#> 73       (mg/kg)/(ng/mL)               vz.obs
#> 74       (mg/kg)/(ng/mL)              vz.pred
#> 75       (mg/kg)/(ng/mL)              vss.obs
#> 76       (mg/kg)/(ng/mL)             vss.pred
#> 77       (mg/kg)/(ng/mL)           vss.iv.obs
#> 78       (mg/kg)/(ng/mL)          vss.iv.pred
#> 79       (mg/kg)/(ng/mL)           vss.md.obs
#> 80       (mg/kg)/(ng/mL)          vss.md.pred
#> 81              hr*ng/mL              auclast
#> 82              hr*ng/mL               aucall
#> 83              hr*ng/mL          aucint.last
#> 84              hr*ng/mL     aucint.last.dose
#> 85              hr*ng/mL           aucint.all
#> 86              hr*ng/mL      aucint.all.dose
#> 87              hr*ng/mL aucabove.predose.all
#> 88              hr*ng/mL  aucabove.trough.all
#> 89              hr*ng/mL       sparse_auclast
#> 90              hr*ng/mL        sparse_auc_se
#> 91              hr*ng/mL            aucivlast
#> 92              hr*ng/mL             aucivall
#> 93              hr*ng/mL        aucivint.last
#> 94              hr*ng/mL         aucivint.all
#> 95              hr*ng/mL           aucinf.obs
#> 96              hr*ng/mL          aucinf.pred
#> 97              hr*ng/mL       aucint.inf.obs
#> 98              hr*ng/mL  aucint.inf.obs.dose
#> 99              hr*ng/mL      aucint.inf.pred
#> 100             hr*ng/mL aucint.inf.pred.dose
#> 101             hr*ng/mL         aucivinf.obs
#> 102             hr*ng/mL        aucivinf.pred
#> 103           hr^2*ng/mL             aumclast
#> 104           hr^2*ng/mL              aumcall
#> 105           hr^2*ng/mL          aumcinf.obs
#> 106           hr^2*ng/mL         aumcinf.pred
#> 107   (hr*ng/mL)/(mg/kg)           auclast.dn
#> 108   (hr*ng/mL)/(mg/kg)            aucall.dn
#> 109   (hr*ng/mL)/(mg/kg)        aucinf.obs.dn
#> 110   (hr*ng/mL)/(mg/kg)       aucinf.pred.dn
#> 111 (hr^2*ng/mL)/(mg/kg)          aumclast.dn
#> 112 (hr^2*ng/mL)/(mg/kg)           aumcall.dn
#> 113 (hr^2*ng/mL)/(mg/kg)       aumcinf.obs.dn
#> 114 (hr^2*ng/mL)/(mg/kg)      aumcinf.pred.dn
#> 115   (mg/kg)/(hr*ng/mL)              cl.last
#> 116   (mg/kg)/(hr*ng/mL)               cl.all
#> 117   (mg/kg)/(hr*ng/mL)               cl.obs
#> 118   (mg/kg)/(hr*ng/mL)              cl.pred
#> 119        mg/(hr*ng/mL)             clr.last
#> 120        mg/(hr*ng/mL)              clr.obs
#> 121        mg/(hr*ng/mL)             clr.pred
pknca_units_table(
  concu="ng/mL", doseu="mg/kg", amountu="mg", timeu="hr",
  # Convert clearance and volume units to more understandable units with
  # automatic unit conversion
  conversions=data.frame(
    PPORRESU=c("(mg/kg)/(hr*ng/mL)", "(mg/kg)/(ng/mL)"),
    PPSTRESU=c("mL/hr/kg", "mL/kg")
  )
)
#>                 PPORRESU             PPTESTCD             PPSTRESU
#> 1               unitless            r.squared             unitless
#> 2               unitless        adj.r.squared             unitless
#> 3               fraction                    f             fraction
#> 4               fraction                  ptr             fraction
#> 5               fraction                   fe             fraction
#> 6               fraction           span.ratio             fraction
#> 7                      %             deg.fluc                    %
#> 8                      %                swing                    %
#> 9                      %       aucivpbextlast                    %
#> 10                     %        aucivpbextall                    %
#> 11                     %   aucivpbextint.last                    %
#> 12                     %    aucivpbextint.all                    %
#> 13                     %    aucivpbextinf.obs                    %
#> 14                     %   aucivpbextinf.pred                    %
#> 15                     %          aucpext.obs                    %
#> 16                     %         aucpext.pred                    %
#> 17                 count           count_conc                count
#> 18                 count        sparse_auc_df                count
#> 19                 count    lambda.z.n.points                count
#> 20                    hr                start                   hr
#> 21                    hr                  end                   hr
#> 22                    hr                 tmax                   hr
#> 23                    hr                tlast                   hr
#> 24                    hr               tfirst                   hr
#> 25                    hr             mrt.last                   hr
#> 26                    hr          mrt.iv.last                   hr
#> 27                    hr                 tlag                   hr
#> 28                    hr           time_above                   hr
#> 29                    hr            half.life                   hr
#> 30                    hr  lambda.z.time.first                   hr
#> 31                    hr       thalf.eff.last                   hr
#> 32                    hr    thalf.eff.iv.last                   hr
#> 33                    hr              mrt.obs                   hr
#> 34                    hr             mrt.pred                   hr
#> 35                    hr           mrt.iv.obs                   hr
#> 36                    hr          mrt.iv.pred                   hr
#> 37                    hr           mrt.md.obs                   hr
#> 38                    hr          mrt.md.pred                   hr
#> 39                    hr        thalf.eff.obs                   hr
#> 40                    hr       thalf.eff.pred                   hr
#> 41                    hr     thalf.eff.iv.obs                   hr
#> 42                    hr    thalf.eff.iv.pred                   hr
#> 43                  1/hr             lambda.z                 1/hr
#> 44                  1/hr             kel.last                 1/hr
#> 45                  1/hr          kel.iv.last                 1/hr
#> 46                  1/hr              kel.obs                 1/hr
#> 47                  1/hr             kel.pred                 1/hr
#> 48                  1/hr           kel.iv.obs                 1/hr
#> 49                  1/hr          kel.iv.pred                 1/hr
#> 50                 ng/mL                   c0                ng/mL
#> 51                 ng/mL                 cmax                ng/mL
#> 52                 ng/mL                 cmin                ng/mL
#> 53                 ng/mL            clast.obs                ng/mL
#> 54                 ng/mL                  cav                ng/mL
#> 55                 ng/mL         cav.int.last                ng/mL
#> 56                 ng/mL          cav.int.all                ng/mL
#> 57                 ng/mL              ctrough                ng/mL
#> 58                 ng/mL               cstart                ng/mL
#> 59                 ng/mL                 ceoi                ng/mL
#> 60                 ng/mL           clast.pred                ng/mL
#> 61                 ng/mL      cav.int.inf.obs                ng/mL
#> 62                 ng/mL     cav.int.inf.pred                ng/mL
#> 63                    mg                   ae                   mg
#> 64                 mg/kg              totdose                mg/kg
#> 65       (ng/mL)/(mg/kg)              cmax.dn      (ng/mL)/(mg/kg)
#> 66       (ng/mL)/(mg/kg)              cmin.dn      (ng/mL)/(mg/kg)
#> 67       (ng/mL)/(mg/kg)         clast.obs.dn      (ng/mL)/(mg/kg)
#> 68       (ng/mL)/(mg/kg)        clast.pred.dn      (ng/mL)/(mg/kg)
#> 69       (ng/mL)/(mg/kg)               cav.dn      (ng/mL)/(mg/kg)
#> 70       (ng/mL)/(mg/kg)           ctrough.dn      (ng/mL)/(mg/kg)
#> 71       (mg/kg)/(ng/mL)             vss.last                mL/kg
#> 72       (mg/kg)/(ng/mL)          vss.iv.last                mL/kg
#> 73       (mg/kg)/(ng/mL)               vz.obs                mL/kg
#> 74       (mg/kg)/(ng/mL)              vz.pred                mL/kg
#> 75       (mg/kg)/(ng/mL)              vss.obs                mL/kg
#> 76       (mg/kg)/(ng/mL)             vss.pred                mL/kg
#> 77       (mg/kg)/(ng/mL)           vss.iv.obs                mL/kg
#> 78       (mg/kg)/(ng/mL)          vss.iv.pred                mL/kg
#> 79       (mg/kg)/(ng/mL)           vss.md.obs                mL/kg
#> 80       (mg/kg)/(ng/mL)          vss.md.pred                mL/kg
#> 81              hr*ng/mL              auclast             hr*ng/mL
#> 82              hr*ng/mL               aucall             hr*ng/mL
#> 83              hr*ng/mL          aucint.last             hr*ng/mL
#> 84              hr*ng/mL     aucint.last.dose             hr*ng/mL
#> 85              hr*ng/mL           aucint.all             hr*ng/mL
#> 86              hr*ng/mL      aucint.all.dose             hr*ng/mL
#> 87              hr*ng/mL aucabove.predose.all             hr*ng/mL
#> 88              hr*ng/mL  aucabove.trough.all             hr*ng/mL
#> 89              hr*ng/mL       sparse_auclast             hr*ng/mL
#> 90              hr*ng/mL        sparse_auc_se             hr*ng/mL
#> 91              hr*ng/mL            aucivlast             hr*ng/mL
#> 92              hr*ng/mL             aucivall             hr*ng/mL
#> 93              hr*ng/mL        aucivint.last             hr*ng/mL
#> 94              hr*ng/mL         aucivint.all             hr*ng/mL
#> 95              hr*ng/mL           aucinf.obs             hr*ng/mL
#> 96              hr*ng/mL          aucinf.pred             hr*ng/mL
#> 97              hr*ng/mL       aucint.inf.obs             hr*ng/mL
#> 98              hr*ng/mL  aucint.inf.obs.dose             hr*ng/mL
#> 99              hr*ng/mL      aucint.inf.pred             hr*ng/mL
#> 100             hr*ng/mL aucint.inf.pred.dose             hr*ng/mL
#> 101             hr*ng/mL         aucivinf.obs             hr*ng/mL
#> 102             hr*ng/mL        aucivinf.pred             hr*ng/mL
#> 103           hr^2*ng/mL             aumclast           hr^2*ng/mL
#> 104           hr^2*ng/mL              aumcall           hr^2*ng/mL
#> 105           hr^2*ng/mL          aumcinf.obs           hr^2*ng/mL
#> 106           hr^2*ng/mL         aumcinf.pred           hr^2*ng/mL
#> 107   (hr*ng/mL)/(mg/kg)           auclast.dn   (hr*ng/mL)/(mg/kg)
#> 108   (hr*ng/mL)/(mg/kg)            aucall.dn   (hr*ng/mL)/(mg/kg)
#> 109   (hr*ng/mL)/(mg/kg)        aucinf.obs.dn   (hr*ng/mL)/(mg/kg)
#> 110   (hr*ng/mL)/(mg/kg)       aucinf.pred.dn   (hr*ng/mL)/(mg/kg)
#> 111 (hr^2*ng/mL)/(mg/kg)          aumclast.dn (hr^2*ng/mL)/(mg/kg)
#> 112 (hr^2*ng/mL)/(mg/kg)           aumcall.dn (hr^2*ng/mL)/(mg/kg)
#> 113 (hr^2*ng/mL)/(mg/kg)       aumcinf.obs.dn (hr^2*ng/mL)/(mg/kg)
#> 114 (hr^2*ng/mL)/(mg/kg)      aumcinf.pred.dn (hr^2*ng/mL)/(mg/kg)
#> 115   (mg/kg)/(hr*ng/mL)              cl.last             mL/hr/kg
#> 116   (mg/kg)/(hr*ng/mL)               cl.all             mL/hr/kg
#> 117   (mg/kg)/(hr*ng/mL)               cl.obs             mL/hr/kg
#> 118   (mg/kg)/(hr*ng/mL)              cl.pred             mL/hr/kg
#> 119        mg/(hr*ng/mL)             clr.last        mg/(hr*ng/mL)
#> 120        mg/(hr*ng/mL)              clr.obs        mg/(hr*ng/mL)
#> 121        mg/(hr*ng/mL)             clr.pred        mg/(hr*ng/mL)
#>     conversion_factor
#> 1               1e+00
#> 2               1e+00
#> 3               1e+00
#> 4               1e+00
#> 5               1e+00
#> 6               1e+00
#> 7               1e+00
#> 8               1e+00
#> 9               1e+00
#> 10              1e+00
#> 11              1e+00
#> 12              1e+00
#> 13              1e+00
#> 14              1e+00
#> 15              1e+00
#> 16              1e+00
#> 17              1e+00
#> 18              1e+00
#> 19              1e+00
#> 20              1e+00
#> 21              1e+00
#> 22              1e+00
#> 23              1e+00
#> 24              1e+00
#> 25              1e+00
#> 26              1e+00
#> 27              1e+00
#> 28              1e+00
#> 29              1e+00
#> 30              1e+00
#> 31              1e+00
#> 32              1e+00
#> 33              1e+00
#> 34              1e+00
#> 35              1e+00
#> 36              1e+00
#> 37              1e+00
#> 38              1e+00
#> 39              1e+00
#> 40              1e+00
#> 41              1e+00
#> 42              1e+00
#> 43              1e+00
#> 44              1e+00
#> 45              1e+00
#> 46              1e+00
#> 47              1e+00
#> 48              1e+00
#> 49              1e+00
#> 50              1e+00
#> 51              1e+00
#> 52              1e+00
#> 53              1e+00
#> 54              1e+00
#> 55              1e+00
#> 56              1e+00
#> 57              1e+00
#> 58              1e+00
#> 59              1e+00
#> 60              1e+00
#> 61              1e+00
#> 62              1e+00
#> 63              1e+00
#> 64              1e+00
#> 65              1e+00
#> 66              1e+00
#> 67              1e+00
#> 68              1e+00
#> 69              1e+00
#> 70              1e+00
#> 71              1e+06
#> 72              1e+06
#> 73              1e+06
#> 74              1e+06
#> 75              1e+06
#> 76              1e+06
#> 77              1e+06
#> 78              1e+06
#> 79              1e+06
#> 80              1e+06
#> 81              1e+00
#> 82              1e+00
#> 83              1e+00
#> 84              1e+00
#> 85              1e+00
#> 86              1e+00
#> 87              1e+00
#> 88              1e+00
#> 89              1e+00
#> 90              1e+00
#> 91              1e+00
#> 92              1e+00
#> 93              1e+00
#> 94              1e+00
#> 95              1e+00
#> 96              1e+00
#> 97              1e+00
#> 98              1e+00
#> 99              1e+00
#> 100             1e+00
#> 101             1e+00
#> 102             1e+00
#> 103             1e+00
#> 104             1e+00
#> 105             1e+00
#> 106             1e+00
#> 107             1e+00
#> 108             1e+00
#> 109             1e+00
#> 110             1e+00
#> 111             1e+00
#> 112             1e+00
#> 113             1e+00
#> 114             1e+00
#> 115             1e+06
#> 116             1e+06
#> 117             1e+06
#> 118             1e+06
#> 119             1e+00
#> 120             1e+00
#> 121             1e+00
pknca_units_table(
  concu="mg/L", doseu="mg/kg", amountu="mg", timeu="hr",
  # Convert clearance and volume units to molar units (assuming
  conversions=data.frame(
    PPORRESU=c("mg/L", "(mg/kg)/(hr*ng/mL)", "(mg/kg)/(ng/mL)"),
    PPSTRESU=c("mmol/L", "mL/hr/kg", "mL/kg"),
    # Manual conversion of concentration units from ng/mL to mmol/L (assuming
    # a molecular weight of 138.121 g/mol)
    conversion_factor=c(1/138.121, NA, NA)
  )
)
#> Warning: The following unit conversions were supplied but do not match any units to convert: '(mg/kg)/(hr*ng/mL)', '(mg/kg)/(ng/mL)'
#>                PPORRESU             PPTESTCD            PPSTRESU
#> 1              unitless            r.squared            unitless
#> 2              unitless        adj.r.squared            unitless
#> 3              fraction                    f            fraction
#> 4              fraction                  ptr            fraction
#> 5              fraction                   fe            fraction
#> 6              fraction           span.ratio            fraction
#> 7                     %             deg.fluc                   %
#> 8                     %                swing                   %
#> 9                     %       aucivpbextlast                   %
#> 10                    %        aucivpbextall                   %
#> 11                    %   aucivpbextint.last                   %
#> 12                    %    aucivpbextint.all                   %
#> 13                    %    aucivpbextinf.obs                   %
#> 14                    %   aucivpbextinf.pred                   %
#> 15                    %          aucpext.obs                   %
#> 16                    %         aucpext.pred                   %
#> 17                count           count_conc               count
#> 18                count        sparse_auc_df               count
#> 19                count    lambda.z.n.points               count
#> 20                   hr                start                  hr
#> 21                   hr                  end                  hr
#> 22                   hr                 tmax                  hr
#> 23                   hr                tlast                  hr
#> 24                   hr               tfirst                  hr
#> 25                   hr             mrt.last                  hr
#> 26                   hr          mrt.iv.last                  hr
#> 27                   hr                 tlag                  hr
#> 28                   hr           time_above                  hr
#> 29                   hr            half.life                  hr
#> 30                   hr  lambda.z.time.first                  hr
#> 31                   hr       thalf.eff.last                  hr
#> 32                   hr    thalf.eff.iv.last                  hr
#> 33                   hr              mrt.obs                  hr
#> 34                   hr             mrt.pred                  hr
#> 35                   hr           mrt.iv.obs                  hr
#> 36                   hr          mrt.iv.pred                  hr
#> 37                   hr           mrt.md.obs                  hr
#> 38                   hr          mrt.md.pred                  hr
#> 39                   hr        thalf.eff.obs                  hr
#> 40                   hr       thalf.eff.pred                  hr
#> 41                   hr     thalf.eff.iv.obs                  hr
#> 42                   hr    thalf.eff.iv.pred                  hr
#> 43                 1/hr             lambda.z                1/hr
#> 44                 1/hr             kel.last                1/hr
#> 45                 1/hr          kel.iv.last                1/hr
#> 46                 1/hr              kel.obs                1/hr
#> 47                 1/hr             kel.pred                1/hr
#> 48                 1/hr           kel.iv.obs                1/hr
#> 49                 1/hr          kel.iv.pred                1/hr
#> 50                 mg/L                   c0              mmol/L
#> 51                 mg/L                 cmax              mmol/L
#> 52                 mg/L                 cmin              mmol/L
#> 53                 mg/L            clast.obs              mmol/L
#> 54                 mg/L                  cav              mmol/L
#> 55                 mg/L         cav.int.last              mmol/L
#> 56                 mg/L          cav.int.all              mmol/L
#> 57                 mg/L              ctrough              mmol/L
#> 58                 mg/L               cstart              mmol/L
#> 59                 mg/L                 ceoi              mmol/L
#> 60                 mg/L           clast.pred              mmol/L
#> 61                 mg/L      cav.int.inf.obs              mmol/L
#> 62                 mg/L     cav.int.inf.pred              mmol/L
#> 63                   mg                   ae                  mg
#> 64                mg/kg              totdose               mg/kg
#> 65       (mg/L)/(mg/kg)              cmax.dn      (mg/L)/(mg/kg)
#> 66       (mg/L)/(mg/kg)              cmin.dn      (mg/L)/(mg/kg)
#> 67       (mg/L)/(mg/kg)         clast.obs.dn      (mg/L)/(mg/kg)
#> 68       (mg/L)/(mg/kg)        clast.pred.dn      (mg/L)/(mg/kg)
#> 69       (mg/L)/(mg/kg)               cav.dn      (mg/L)/(mg/kg)
#> 70       (mg/L)/(mg/kg)           ctrough.dn      (mg/L)/(mg/kg)
#> 71       (mg/kg)/(mg/L)             vss.last      (mg/kg)/(mg/L)
#> 72       (mg/kg)/(mg/L)          vss.iv.last      (mg/kg)/(mg/L)
#> 73       (mg/kg)/(mg/L)               vz.obs      (mg/kg)/(mg/L)
#> 74       (mg/kg)/(mg/L)              vz.pred      (mg/kg)/(mg/L)
#> 75       (mg/kg)/(mg/L)              vss.obs      (mg/kg)/(mg/L)
#> 76       (mg/kg)/(mg/L)             vss.pred      (mg/kg)/(mg/L)
#> 77       (mg/kg)/(mg/L)           vss.iv.obs      (mg/kg)/(mg/L)
#> 78       (mg/kg)/(mg/L)          vss.iv.pred      (mg/kg)/(mg/L)
#> 79       (mg/kg)/(mg/L)           vss.md.obs      (mg/kg)/(mg/L)
#> 80       (mg/kg)/(mg/L)          vss.md.pred      (mg/kg)/(mg/L)
#> 81              hr*mg/L              auclast             hr*mg/L
#> 82              hr*mg/L               aucall             hr*mg/L
#> 83              hr*mg/L          aucint.last             hr*mg/L
#> 84              hr*mg/L     aucint.last.dose             hr*mg/L
#> 85              hr*mg/L           aucint.all             hr*mg/L
#> 86              hr*mg/L      aucint.all.dose             hr*mg/L
#> 87              hr*mg/L aucabove.predose.all             hr*mg/L
#> 88              hr*mg/L  aucabove.trough.all             hr*mg/L
#> 89              hr*mg/L       sparse_auclast             hr*mg/L
#> 90              hr*mg/L        sparse_auc_se             hr*mg/L
#> 91              hr*mg/L            aucivlast             hr*mg/L
#> 92              hr*mg/L             aucivall             hr*mg/L
#> 93              hr*mg/L        aucivint.last             hr*mg/L
#> 94              hr*mg/L         aucivint.all             hr*mg/L
#> 95              hr*mg/L           aucinf.obs             hr*mg/L
#> 96              hr*mg/L          aucinf.pred             hr*mg/L
#> 97              hr*mg/L       aucint.inf.obs             hr*mg/L
#> 98              hr*mg/L  aucint.inf.obs.dose             hr*mg/L
#> 99              hr*mg/L      aucint.inf.pred             hr*mg/L
#> 100             hr*mg/L aucint.inf.pred.dose             hr*mg/L
#> 101             hr*mg/L         aucivinf.obs             hr*mg/L
#> 102             hr*mg/L        aucivinf.pred             hr*mg/L
#> 103           hr^2*mg/L             aumclast           hr^2*mg/L
#> 104           hr^2*mg/L              aumcall           hr^2*mg/L
#> 105           hr^2*mg/L          aumcinf.obs           hr^2*mg/L
#> 106           hr^2*mg/L         aumcinf.pred           hr^2*mg/L
#> 107   (hr*mg/L)/(mg/kg)           auclast.dn   (hr*mg/L)/(mg/kg)
#> 108   (hr*mg/L)/(mg/kg)            aucall.dn   (hr*mg/L)/(mg/kg)
#> 109   (hr*mg/L)/(mg/kg)        aucinf.obs.dn   (hr*mg/L)/(mg/kg)
#> 110   (hr*mg/L)/(mg/kg)       aucinf.pred.dn   (hr*mg/L)/(mg/kg)
#> 111 (hr^2*mg/L)/(mg/kg)          aumclast.dn (hr^2*mg/L)/(mg/kg)
#> 112 (hr^2*mg/L)/(mg/kg)           aumcall.dn (hr^2*mg/L)/(mg/kg)
#> 113 (hr^2*mg/L)/(mg/kg)       aumcinf.obs.dn (hr^2*mg/L)/(mg/kg)
#> 114 (hr^2*mg/L)/(mg/kg)      aumcinf.pred.dn (hr^2*mg/L)/(mg/kg)
#> 115   (mg/kg)/(hr*mg/L)              cl.last   (mg/kg)/(hr*mg/L)
#> 116   (mg/kg)/(hr*mg/L)               cl.all   (mg/kg)/(hr*mg/L)
#> 117   (mg/kg)/(hr*mg/L)               cl.obs   (mg/kg)/(hr*mg/L)
#> 118   (mg/kg)/(hr*mg/L)              cl.pred   (mg/kg)/(hr*mg/L)
#> 119        mg/(hr*mg/L)             clr.last        mg/(hr*mg/L)
#> 120        mg/(hr*mg/L)              clr.obs        mg/(hr*mg/L)
#> 121        mg/(hr*mg/L)             clr.pred        mg/(hr*mg/L)
#>     conversion_factor
#> 1         1.000000000
#> 2         1.000000000
#> 3         1.000000000
#> 4         1.000000000
#> 5         1.000000000
#> 6         1.000000000
#> 7         1.000000000
#> 8         1.000000000
#> 9         1.000000000
#> 10        1.000000000
#> 11        1.000000000
#> 12        1.000000000
#> 13        1.000000000
#> 14        1.000000000
#> 15        1.000000000
#> 16        1.000000000
#> 17        1.000000000
#> 18        1.000000000
#> 19        1.000000000
#> 20        1.000000000
#> 21        1.000000000
#> 22        1.000000000
#> 23        1.000000000
#> 24        1.000000000
#> 25        1.000000000
#> 26        1.000000000
#> 27        1.000000000
#> 28        1.000000000
#> 29        1.000000000
#> 30        1.000000000
#> 31        1.000000000
#> 32        1.000000000
#> 33        1.000000000
#> 34        1.000000000
#> 35        1.000000000
#> 36        1.000000000
#> 37        1.000000000
#> 38        1.000000000
#> 39        1.000000000
#> 40        1.000000000
#> 41        1.000000000
#> 42        1.000000000
#> 43        1.000000000
#> 44        1.000000000
#> 45        1.000000000
#> 46        1.000000000
#> 47        1.000000000
#> 48        1.000000000
#> 49        1.000000000
#> 50        0.007240029
#> 51        0.007240029
#> 52        0.007240029
#> 53        0.007240029
#> 54        0.007240029
#> 55        0.007240029
#> 56        0.007240029
#> 57        0.007240029
#> 58        0.007240029
#> 59        0.007240029
#> 60        0.007240029
#> 61        0.007240029
#> 62        0.007240029
#> 63        1.000000000
#> 64        1.000000000
#> 65        1.000000000
#> 66        1.000000000
#> 67        1.000000000
#> 68        1.000000000
#> 69        1.000000000
#> 70        1.000000000
#> 71        1.000000000
#> 72        1.000000000
#> 73        1.000000000
#> 74        1.000000000
#> 75        1.000000000
#> 76        1.000000000
#> 77        1.000000000
#> 78        1.000000000
#> 79        1.000000000
#> 80        1.000000000
#> 81        1.000000000
#> 82        1.000000000
#> 83        1.000000000
#> 84        1.000000000
#> 85        1.000000000
#> 86        1.000000000
#> 87        1.000000000
#> 88        1.000000000
#> 89        1.000000000
#> 90        1.000000000
#> 91        1.000000000
#> 92        1.000000000
#> 93        1.000000000
#> 94        1.000000000
#> 95        1.000000000
#> 96        1.000000000
#> 97        1.000000000
#> 98        1.000000000
#> 99        1.000000000
#> 100       1.000000000
#> 101       1.000000000
#> 102       1.000000000
#> 103       1.000000000
#> 104       1.000000000
#> 105       1.000000000
#> 106       1.000000000
#> 107       1.000000000
#> 108       1.000000000
#> 109       1.000000000
#> 110       1.000000000
#> 111       1.000000000
#> 112       1.000000000
#> 113       1.000000000
#> 114       1.000000000
#> 115       1.000000000
#> 116       1.000000000
#> 117       1.000000000
#> 118       1.000000000
#> 119       1.000000000
#> 120       1.000000000
#> 121       1.000000000

# This will make all time-related parameters use "day" even though the
# original units are "hr"
pknca_units_table(
  concu = "ng/mL", doseu = "mg/kg", timeu = "hr", amountu = "mg",
  timeu_pref = "day"
)
#>                 PPORRESU             PPTESTCD              PPSTRESU
#> 1               unitless            r.squared              unitless
#> 2               unitless        adj.r.squared              unitless
#> 3               fraction                    f              fraction
#> 4               fraction                  ptr              fraction
#> 5               fraction                   fe              fraction
#> 6               fraction           span.ratio              fraction
#> 7                      %             deg.fluc                     %
#> 8                      %                swing                     %
#> 9                      %       aucivpbextlast                     %
#> 10                     %        aucivpbextall                     %
#> 11                     %   aucivpbextint.last                     %
#> 12                     %    aucivpbextint.all                     %
#> 13                     %    aucivpbextinf.obs                     %
#> 14                     %   aucivpbextinf.pred                     %
#> 15                     %          aucpext.obs                     %
#> 16                     %         aucpext.pred                     %
#> 17                 count           count_conc                 count
#> 18                 count        sparse_auc_df                 count
#> 19                 count    lambda.z.n.points                 count
#> 20                    hr                start                   day
#> 21                    hr                  end                   day
#> 22                    hr                 tmax                   day
#> 23                    hr                tlast                   day
#> 24                    hr               tfirst                   day
#> 25                    hr             mrt.last                   day
#> 26                    hr          mrt.iv.last                   day
#> 27                    hr                 tlag                   day
#> 28                    hr           time_above                   day
#> 29                    hr            half.life                   day
#> 30                    hr  lambda.z.time.first                   day
#> 31                    hr       thalf.eff.last                   day
#> 32                    hr    thalf.eff.iv.last                   day
#> 33                    hr              mrt.obs                   day
#> 34                    hr             mrt.pred                   day
#> 35                    hr           mrt.iv.obs                   day
#> 36                    hr          mrt.iv.pred                   day
#> 37                    hr           mrt.md.obs                   day
#> 38                    hr          mrt.md.pred                   day
#> 39                    hr        thalf.eff.obs                   day
#> 40                    hr       thalf.eff.pred                   day
#> 41                    hr     thalf.eff.iv.obs                   day
#> 42                    hr    thalf.eff.iv.pred                   day
#> 43                  1/hr             lambda.z                 1/day
#> 44                  1/hr             kel.last                 1/day
#> 45                  1/hr          kel.iv.last                 1/day
#> 46                  1/hr              kel.obs                 1/day
#> 47                  1/hr             kel.pred                 1/day
#> 48                  1/hr           kel.iv.obs                 1/day
#> 49                  1/hr          kel.iv.pred                 1/day
#> 50                 ng/mL                   c0                 ng/mL
#> 51                 ng/mL                 cmax                 ng/mL
#> 52                 ng/mL                 cmin                 ng/mL
#> 53                 ng/mL            clast.obs                 ng/mL
#> 54                 ng/mL                  cav                 ng/mL
#> 55                 ng/mL         cav.int.last                 ng/mL
#> 56                 ng/mL          cav.int.all                 ng/mL
#> 57                 ng/mL              ctrough                 ng/mL
#> 58                 ng/mL               cstart                 ng/mL
#> 59                 ng/mL                 ceoi                 ng/mL
#> 60                 ng/mL           clast.pred                 ng/mL
#> 61                 ng/mL      cav.int.inf.obs                 ng/mL
#> 62                 ng/mL     cav.int.inf.pred                 ng/mL
#> 63                    mg                   ae                    mg
#> 64                 mg/kg              totdose                 mg/kg
#> 65       (ng/mL)/(mg/kg)              cmax.dn       (ng/mL)/(mg/kg)
#> 66       (ng/mL)/(mg/kg)              cmin.dn       (ng/mL)/(mg/kg)
#> 67       (ng/mL)/(mg/kg)         clast.obs.dn       (ng/mL)/(mg/kg)
#> 68       (ng/mL)/(mg/kg)        clast.pred.dn       (ng/mL)/(mg/kg)
#> 69       (ng/mL)/(mg/kg)               cav.dn       (ng/mL)/(mg/kg)
#> 70       (ng/mL)/(mg/kg)           ctrough.dn       (ng/mL)/(mg/kg)
#> 71       (mg/kg)/(ng/mL)             vss.last       (mg/kg)/(ng/mL)
#> 72       (mg/kg)/(ng/mL)          vss.iv.last       (mg/kg)/(ng/mL)
#> 73       (mg/kg)/(ng/mL)               vz.obs       (mg/kg)/(ng/mL)
#> 74       (mg/kg)/(ng/mL)              vz.pred       (mg/kg)/(ng/mL)
#> 75       (mg/kg)/(ng/mL)              vss.obs       (mg/kg)/(ng/mL)
#> 76       (mg/kg)/(ng/mL)             vss.pred       (mg/kg)/(ng/mL)
#> 77       (mg/kg)/(ng/mL)           vss.iv.obs       (mg/kg)/(ng/mL)
#> 78       (mg/kg)/(ng/mL)          vss.iv.pred       (mg/kg)/(ng/mL)
#> 79       (mg/kg)/(ng/mL)           vss.md.obs       (mg/kg)/(ng/mL)
#> 80       (mg/kg)/(ng/mL)          vss.md.pred       (mg/kg)/(ng/mL)
#> 81              hr*ng/mL              auclast             day*ng/mL
#> 82              hr*ng/mL               aucall             day*ng/mL
#> 83              hr*ng/mL          aucint.last             day*ng/mL
#> 84              hr*ng/mL     aucint.last.dose             day*ng/mL
#> 85              hr*ng/mL           aucint.all             day*ng/mL
#> 86              hr*ng/mL      aucint.all.dose             day*ng/mL
#> 87              hr*ng/mL aucabove.predose.all             day*ng/mL
#> 88              hr*ng/mL  aucabove.trough.all             day*ng/mL
#> 89              hr*ng/mL       sparse_auclast             day*ng/mL
#> 90              hr*ng/mL        sparse_auc_se             day*ng/mL
#> 91              hr*ng/mL            aucivlast             day*ng/mL
#> 92              hr*ng/mL             aucivall             day*ng/mL
#> 93              hr*ng/mL        aucivint.last             day*ng/mL
#> 94              hr*ng/mL         aucivint.all             day*ng/mL
#> 95              hr*ng/mL           aucinf.obs             day*ng/mL
#> 96              hr*ng/mL          aucinf.pred             day*ng/mL
#> 97              hr*ng/mL       aucint.inf.obs             day*ng/mL
#> 98              hr*ng/mL  aucint.inf.obs.dose             day*ng/mL
#> 99              hr*ng/mL      aucint.inf.pred             day*ng/mL
#> 100             hr*ng/mL aucint.inf.pred.dose             day*ng/mL
#> 101             hr*ng/mL         aucivinf.obs             day*ng/mL
#> 102             hr*ng/mL        aucivinf.pred             day*ng/mL
#> 103           hr^2*ng/mL             aumclast           day^2*ng/mL
#> 104           hr^2*ng/mL              aumcall           day^2*ng/mL
#> 105           hr^2*ng/mL          aumcinf.obs           day^2*ng/mL
#> 106           hr^2*ng/mL         aumcinf.pred           day^2*ng/mL
#> 107   (hr*ng/mL)/(mg/kg)           auclast.dn   (day*ng/mL)/(mg/kg)
#> 108   (hr*ng/mL)/(mg/kg)            aucall.dn   (day*ng/mL)/(mg/kg)
#> 109   (hr*ng/mL)/(mg/kg)        aucinf.obs.dn   (day*ng/mL)/(mg/kg)
#> 110   (hr*ng/mL)/(mg/kg)       aucinf.pred.dn   (day*ng/mL)/(mg/kg)
#> 111 (hr^2*ng/mL)/(mg/kg)          aumclast.dn (day^2*ng/mL)/(mg/kg)
#> 112 (hr^2*ng/mL)/(mg/kg)           aumcall.dn (day^2*ng/mL)/(mg/kg)
#> 113 (hr^2*ng/mL)/(mg/kg)       aumcinf.obs.dn (day^2*ng/mL)/(mg/kg)
#> 114 (hr^2*ng/mL)/(mg/kg)      aumcinf.pred.dn (day^2*ng/mL)/(mg/kg)
#> 115   (mg/kg)/(hr*ng/mL)              cl.last   (mg/kg)/(day*ng/mL)
#> 116   (mg/kg)/(hr*ng/mL)               cl.all   (mg/kg)/(day*ng/mL)
#> 117   (mg/kg)/(hr*ng/mL)               cl.obs   (mg/kg)/(day*ng/mL)
#> 118   (mg/kg)/(hr*ng/mL)              cl.pred   (mg/kg)/(day*ng/mL)
#> 119        mg/(hr*ng/mL)             clr.last        mg/(day*ng/mL)
#> 120        mg/(hr*ng/mL)              clr.obs        mg/(day*ng/mL)
#> 121        mg/(hr*ng/mL)             clr.pred        mg/(day*ng/mL)
#>     conversion_factor
#> 1         1.000000000
#> 2         1.000000000
#> 3         1.000000000
#> 4         1.000000000
#> 5         1.000000000
#> 6         1.000000000
#> 7         1.000000000
#> 8         1.000000000
#> 9         1.000000000
#> 10        1.000000000
#> 11        1.000000000
#> 12        1.000000000
#> 13        1.000000000
#> 14        1.000000000
#> 15        1.000000000
#> 16        1.000000000
#> 17        1.000000000
#> 18        1.000000000
#> 19        1.000000000
#> 20        0.041666667
#> 21        0.041666667
#> 22        0.041666667
#> 23        0.041666667
#> 24        0.041666667
#> 25        0.041666667
#> 26        0.041666667
#> 27        0.041666667
#> 28        0.041666667
#> 29        0.041666667
#> 30        0.041666667
#> 31        0.041666667
#> 32        0.041666667
#> 33        0.041666667
#> 34        0.041666667
#> 35        0.041666667
#> 36        0.041666667
#> 37        0.041666667
#> 38        0.041666667
#> 39        0.041666667
#> 40        0.041666667
#> 41        0.041666667
#> 42        0.041666667
#> 43       24.000000000
#> 44       24.000000000
#> 45       24.000000000
#> 46       24.000000000
#> 47       24.000000000
#> 48       24.000000000
#> 49       24.000000000
#> 50        1.000000000
#> 51        1.000000000
#> 52        1.000000000
#> 53        1.000000000
#> 54        1.000000000
#> 55        1.000000000
#> 56        1.000000000
#> 57        1.000000000
#> 58        1.000000000
#> 59        1.000000000
#> 60        1.000000000
#> 61        1.000000000
#> 62        1.000000000
#> 63        1.000000000
#> 64        1.000000000
#> 65        1.000000000
#> 66        1.000000000
#> 67        1.000000000
#> 68        1.000000000
#> 69        1.000000000
#> 70        1.000000000
#> 71        1.000000000
#> 72        1.000000000
#> 73        1.000000000
#> 74        1.000000000
#> 75        1.000000000
#> 76        1.000000000
#> 77        1.000000000
#> 78        1.000000000
#> 79        1.000000000
#> 80        1.000000000
#> 81        0.041666667
#> 82        0.041666667
#> 83        0.041666667
#> 84        0.041666667
#> 85        0.041666667
#> 86        0.041666667
#> 87        0.041666667
#> 88        0.041666667
#> 89        0.041666667
#> 90        0.041666667
#> 91        0.041666667
#> 92        0.041666667
#> 93        0.041666667
#> 94        0.041666667
#> 95        0.041666667
#> 96        0.041666667
#> 97        0.041666667
#> 98        0.041666667
#> 99        0.041666667
#> 100       0.041666667
#> 101       0.041666667
#> 102       0.041666667
#> 103       0.001736111
#> 104       0.001736111
#> 105       0.001736111
#> 106       0.001736111
#> 107       0.041666667
#> 108       0.041666667
#> 109       0.041666667
#> 110       0.041666667
#> 111       0.001736111
#> 112       0.001736111
#> 113       0.001736111
#> 114       0.001736111
#> 115      24.000000000
#> 116      24.000000000
#> 117      24.000000000
#> 118      24.000000000
#> 119      24.000000000
#> 120      24.000000000
#> 121      24.000000000