8.7 Parameter mappings, compartments and scaling
TRANS converts basic PK parameters into micro-rate constants. nlmx validates that the required variables were assigned in $PK, accepting documented synonyms where implemented.
Common mappings
For ADVAN1/2 TRANS2:
with KA additionally required for ADVAN2. Two-compartment TRANS4 uses
ADVAN3 names the central volume V1 and peripheral V2; ADVAN4 includes a depot, so central is commonly V2 and peripheral V3. Accepted V synonyms are recorded as notes when they differ from the primary expected name.
TRANS3 uses VSS and computes the peripheral volume as VSS - V; invalid or near-degenerate values can yield invalid rates. TRANS5/6 use macro/eigenvalue parameters and are inverted to the same micro-rate system. Three-compartment TRANS4 uses Q2/V2 and Q3/V3 conventions appropriate to ADVAN11/12 numbering.
Compartment scaling
The engine stores amounts. Prediction F is the selected compartment amount divided by its Sn scale; the output compartment uses S(n+1) or SO. In concentration models, set the central scale to its volume:
S2 = V ; ADVAN2 central is compartment 2
Omitting or misnumbering the scale can produce amount predictions with otherwise plausible time profiles.
Compartment modifiers
For each compartment, $PK variables can supply:
Fn: bioavailability, default 1;ALAGn: lag, default 0;Rn: modelled infusion rate forRATE=-1;Dn: modelled duration forRATE=-2;Sn: observation scale, default 1.
These values are evaluated record by record and can depend on ETA or covariates.
Common mistakes
- Applying
S1=Vto an absorption model whose central compartment is 2. - Assuming
VSSis the peripheral volume. - Comparing macro parameters without verifying TRANS inversion.
Checklist
- Derive the micro rates independently.
- Confirm compartment numbering and scale variables.
- Check every accepted synonym note.
Further reading
See ADVAN support, dose modifiers and the worked comparison.