Documentation

15.12 Units, dose factor, and labels

The [units] section has four keys:

[units]
dose = "mg"
time = "h"
conc = "ng/mL"
dose_factor = 1000

The first three are labels used in tables and figures. They do not convert the dataset. dose_factor numerically multiplies the dose when clearance and volume are computed.

A dimensional example

With dose in mg and concentration in ng/mL, ng/mL equals µg/L. Multiplying mg by 1000 converts it to µg, so dose/AUC produces L/h when time is hours. The template therefore gives 1000 as the example factor. If concentration is already mg/L, the factor should normally be 1 for L/h.

Write the equation with the actual study units instead of memorizing a factor. A concentration mutation may also convert values; using both mutation and dose_factor for the same conversion applies it twice.

What changes and what does not

Changing dose_factor affects dose-derived clearance and volume fields. It does not change concentration, Cmax, AUC, lambda-z, half-life, or MRT. Changing only a label changes presentation, not numbers. This separation makes unit mistakes easy to detect by comparing upstream and downstream parameters.

Time units must be internally consistent among TIME, II, RATE-derived duration, tau, lambda-z range, partial-AUC boundaries, and max_time. If TIME is days but tau is given as 24 expecting hours, steady-state metrics are wrong without an obvious parser error.

Include a unit table with source column, source unit, any mutation, analysis unit, and output unit. Calculate one subject's clearance and volume by hand from unrounded dose, factor, AUCinf, and lambda-z. Confirm labels in nca_summary.csv and axes.

Common mistakes

  • Believing dose, time, and conc perform conversion.
  • Using autoinit-only --dose-unit/--conc-unit as NCA unit controls.
  • Applying conversion in both mutation and dose factor.
  • Mixing hours and days across tau or partial windows.

Checklist

  • Write dimensional equations before choosing the factor.
  • Inspect effective dose numerically.
  • Verify all time controls use one scale.
  • Recompute one CL and V result.
  • Treat labels and conversions as separate controls.

Further reading

Review unit theory, mapping/mutation, and derived-parameter columns.